https://github.com/264gaurav/mongo-docker-webapp
A Web App with mongo docker container - profile updates feature in the web application with express server and mongoDB database.
https://github.com/264gaurav/mongo-docker-webapp
docker docker-container express javascript mongo mongo-database mongo-express nodejs webapp
Last synced: 3 months ago
JSON representation
A Web App with mongo docker container - profile updates feature in the web application with express server and mongoDB database.
- Host: GitHub
- URL: https://github.com/264gaurav/mongo-docker-webapp
- Owner: 264Gaurav
- Created: 2025-07-19T07:26:20.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-19T07:47:18.000Z (11 months ago)
- Last Synced: 2025-07-19T12:10:03.857Z (11 months ago)
- Topics: docker, docker-container, express, javascript, mongo, mongo-database, mongo-express, nodejs, webapp
- Language: JavaScript
- Homepage:
- Size: 7.77 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## app - developing with Docker
This app shows a simple user profile app set up using
- index.html with pure js and css styles
- nodejs backend with express module
- mongodb for data storage
All components are docker-based
### With Docker
#### To start the application
Step 1: Create docker network
docker network create mongo-network
Step 2: start mongodb
docker run -d -p 27017:27017 -e MONGO_INITDB_ROOT_USERNAME=admin -e MONGO_INITDB_ROOT_PASSWORD=password --name mongodb --net mongo-network mongo
Step 3: start mongo-express
docker run -d -p 8081:8081 -e ME_CONFIG_MONGODB_ADMINUSERNAME=admin -e ME_CONFIG_MONGODB_ADMINPASSWORD=password --net mongo-network --name mongo-express -e ME_CONFIG_MONGODB_SERVER=mongodb mongo-express
_NOTE: creating docker-network in optional. You can start both containers in a default network. In this case, just emit `--net` flag in `docker run` command_
Step 4: open mongo-express from browser
http://localhost:8081
Step 5: create `user-account` _db_ and `users` _collection_ in mongo-express
Step 6: Start your nodejs application locally - go to `app` directory of project
npm install
node server.js
Step 7: Access you nodejs application UI from browser
http://localhost:3000