Skip to content

vineet1947/post_backend

Repository files navigation

Notes for Marbel Health Microservice

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.

Prerequisites

Deployment

Standalone Express Server

  1. Install Dependencies:

    npm install
  2. Configure MongoDB URI:

    Create a .env file in the root directory and add your MongoDB connection URI:

    MONGODB_URI=your-mongodb-uri
    
  3. Start the Server:

    npm run dev

    Access the application at http://localhost:3000. Access the Swagger documentation at http://localhost:3000/api-docs.

Docker Build

  1. Build and Deploy Docker Container:

    docker build -t your-image-name .
  2. Run Docker Container:

    docker run -p 3000:3000 --env-file .env your-image-name

Development

To apply code changes, just save the file and nodemon will automatically restart the server:

npm run dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published