Skip to content

ANThe124/node-mongoose-prototype

Repository files navigation

node-mongoose-prototype

A simple NodeJS CRUD app that can be used to quickly test MongoDB deployments using Mongoose and Express

Instructions:

  1. Create a '.env' file to add your Database and PORT variables:

    # App host:port
    HOST="0.0.0.0"
    PORT=3000
    # MongoDB connection string
    CONN_STR="mongodb+srv://username:password@cluster..."
  2. Run the app:

    # Docker v1:
    docker-compose -f docker-compose.yaml up -d
    
    # Docker v2:
    docker compose -f docker-compose.yaml up -d
  3. Access the app at 0.0.0.0:3000 or localhost:3000

That's it!

About

A simple NodeJS CRUD app that can be used to quickly test MongoDB deployments using Mongoose and Express.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors