nodejs + nestjs + prisma + zookeeper + kafka + mysql
$ yarn install
The step will automatic generate some types of Model with Prisma schema when post-install
Make sure docker & docker-compose is installed.
# Run kafka server in local machine
$ docker-compose up
Initial Database and Tables
$ yarn init:db
Run the application
$ yarn start
example
POST http://localhost:3000/send/consumer
Body
{
"devicecode": "4396123012",
"rainfall": 1.213,
"monitortime": "23/9/2021 18:50:00"
}
GET http://localhost:3000/download