Run the commands:
docker pull bitnami/mongodb
docker run -d -p 27800:27017 --name mymongodb bitnami/mongodb
Add a .env file in /server/
with the following content:
NODE_ENV=debug
PORT=4000
MONGODB_URI=mongodb://localhost:27800
MONGODB_DB=flat-app
Run the commands
cd /server/
npm start
View the APIs by accessing localhost:4000/
- Install MongoDB Compass Community [https://www.mongodb.com/download-center/compass]
- Connect to localhost:27800