Built with NestJS, Node.js, Apollo Graphql, KafkaJS and mongoDB
This is the scafold for different microservices for the development of the VortusApp
$ npm install
The application requires a monogoDB database and a running Kafka cluster.
For Kafka a development environment can be started by following this quick start guide for Confluent Platform.
For mongoDB a quick start can be found here although it may be easier to spin up a cluster with mongoDB Atlas.
Details for these services need to be entered into a .env file in the root of the application with the following environmental variables
KAFKA_BROKERS = localhost:9092
KAFKA_CLIENT_ID = patients
KAFKA_TOPIC = patients
MONGODB_URL=mongodb://127.0.0.1:27017/patients
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
I really don't know what I am doing so if you see something blatantly stupid maybe let me know.