This demo app shows a simple user profile app set up using
- index.html with pure js and css styles
- nodejs backend with express mode
- mongodb for data storage
All components are docker-based
Step 1: start mongodb and mongo-express
docker-compose -f docker-compose.yaml up
You can access the mongo-express under localhost:8080 from your browser
Step 2: in mongo-express UI - create a new database "my-db"
Step 3: in mongo-express UI - create a new collection "users" in the database "my-db"
Step 4: start node server
node server.js
You can access the application under localhost:3000 from your browser
docker build -t my-app:1.0 .
The dot "." at the end of the command denotes location of the Dockerfile.