A simple NodeJS CRUD app that can be used to quickly test MongoDB deployments using Mongoose and Express
-
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..."
-
Run the app:
# Docker v1: docker-compose -f docker-compose.yaml up -d # Docker v2: docker compose -f docker-compose.yaml up -d
-
Access the app at
0.0.0.0:3000orlocalhost:3000
That's it!
