- Clone repo
- run
npm install
- run
docker pull mongo
- run
docker pull mongo-express
- run
docker network create mongo-network
docker run -d -p 27017:27017
-e MONGO_INITDB_ROOT_USERNAME=admin
-e MONGO_INITDB_ROOT_PASSWORD=password
--name mongodb
--net mongo-network mongo`
docker run -d -p 8081:8081
-e ME_CONFIG_MONGODB_ADMINUSERNAME=admin
-e ME_CONFIG_MONGODB_ADMINPASSWORD=password
-e ME_CONFIG_MONGODB_SERVER=mongodb
--name mongo-express
--net mongo-network
mongo-express
- Navigate to
http://localhost:8081/
- Create Database & Collections
- run
npm run dev
- Navigate to
localhost:3000