GitXplorerGitXplorer
F

rainfall-node

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
717eb490ec298a790399b5401f7be33f390600fc

fix: optimize and delete some unused import code

FFuzzyFade committed 2 years ago
Unverified
ed2efcb572655d8fe5f84d7047e892409c23bac3

chore: update api document for download csv

FFuzzyFade committed 2 years ago
Unverified
9bb90da6beda861e3527bfa951b4d936672436de

feat: data.csv download api

FFuzzyFade committed 2 years ago
Unverified
832f76aa932beead6eb542d2679fde87203be7b4

chore: optimize doc

FFuzzyFade committed 2 years ago
Unverified
adc525681e2fa68c7cf7d8fd3a2c572f1a0a629e

chore: add api document

FFuzzyFade committed 2 years ago
Unverified
d662615485c18256cf24454df0c5608247e33c5c

chore(README): update installation tips

FFuzzyFade committed 2 years ago

README

The README file for this repository.

Rainfall Real-time Big data processor distributed application

nodejs + nestjs + prisma + zookeeper + kafka + mysql

Installation

$ yarn install

The step will automatic generate some types of Model with Prisma schema when post-install

Running the app

Step- 1

Make sure docker & docker-compose is installed.

# Run kafka server in local machine
$ docker-compose up

Step- 2 (Optional)

Initial Database and Tables

$ yarn init:db

Step- 3

Run the application

$ yarn start

API Document

local machine

example

Push Event

POST http://localhost:3000/send/consumer
Body 
{
    "devicecode": "4396123012",
    "rainfall": 1.213,
    "monitortime": "23/9/2021 18:50:00"
}

Download CSV

GET http://localhost:3000/download