This repository contains the Notes Microservice, built with Node.js, Express, and MongoDB. It supports deployment as a standalone Express server for Marble Health Screening.
-
Install Dependencies:
npm install
-
Configure MongoDB URI:
Create a
.env
file in the root directory and add your MongoDB connection URI:MONGODB_URI=your-mongodb-uri
-
Start the Server:
npm run dev
Access the application at
http://localhost:3000
. Access the Swagger documentation athttp://localhost:3000/api-docs
.
-
Build and Deploy Docker Container:
docker build -t your-image-name .
-
Run Docker Container:
docker run -p 3000:3000 --env-file .env your-image-name
To apply code changes, just save the file and nodemon
will automatically restart the server:
npm run dev