{"id":29661674,"url":"https://github.com/264gaurav/mongo-docker-webapp","last_synced_at":"2026-04-09T07:02:25.724Z","repository":{"id":305291296,"uuid":"1022492023","full_name":"264Gaurav/mongo-docker-webApp","owner":"264Gaurav","description":"A Web App with mongo docker container - profile updates feature in the web application with express server and mongoDB database.","archived":false,"fork":false,"pushed_at":"2025-07-19T07:47:18.000Z","size":8152,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-19T12:10:03.857Z","etag":null,"topics":["docker","docker-container","express","javascript","mongo","mongo-database","mongo-express","nodejs","webapp"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/264Gaurav.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-19T07:26:20.000Z","updated_at":"2025-07-19T07:47:22.000Z","dependencies_parsed_at":"2025-07-19T12:10:15.946Z","dependency_job_id":null,"html_url":"https://github.com/264Gaurav/mongo-docker-webApp","commit_stats":null,"previous_names":["264gaurav/mongo-docker-webapp"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/264Gaurav/mongo-docker-webApp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/264Gaurav%2Fmongo-docker-webApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/264Gaurav%2Fmongo-docker-webApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/264Gaurav%2Fmongo-docker-webApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/264Gaurav%2Fmongo-docker-webApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/264Gaurav","download_url":"https://codeload.github.com/264Gaurav/mongo-docker-webApp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/264Gaurav%2Fmongo-docker-webApp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266473104,"owners_count":23934477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-container","express","javascript","mongo","mongo-database","mongo-express","nodejs","webapp"],"created_at":"2025-07-22T10:07:38.977Z","updated_at":"2025-12-30T22:06:58.800Z","avatar_url":"https://github.com/264Gaurav.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## app - developing with Docker\n\nThis app shows a simple user profile app set up using\n\n- index.html with pure js and css styles\n- nodejs backend with express module\n- mongodb for data storage\n\nAll components are docker-based\n\n### With Docker\n\n#### To start the application\n\nStep 1: Create docker network\n\n    docker network create mongo-network\n\nStep 2: start mongodb\n\n    docker run -d -p 27017:27017 -e MONGO_INITDB_ROOT_USERNAME=admin -e MONGO_INITDB_ROOT_PASSWORD=password --name mongodb --net mongo-network mongo\n\nStep 3: start mongo-express\n\n    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\n\n_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_\n\nStep 4: open mongo-express from browser\n\n    http://localhost:8081\n\nStep 5: create `user-account` _db_ and `users` _collection_ in mongo-express\n\nStep 6: Start your nodejs application locally - go to `app` directory of project\n\n    npm install\n    node server.js\n\nStep 7: Access you nodejs application UI from browser\n\n    http://localhost:3000\n\n\u003c!--\n### With Docker Compose\n\n#### To start the application\n\nStep 1: start mongodb and mongo-express\n\n    docker-compose -f docker-compose.yaml up\n\n_You can access the mongo-express under localhost:8080 from your browser_\n\nStep 2: in mongo-express UI - create a new database \"my-db\"\n\nStep 3: in mongo-express UI - create a new collection \"users\" in the database \"my-db\"\n\nStep 4: start node server\n\n    npm install\n    node server.js\n\nStep 5: access the nodejs application from browser\n\n    http://localhost:3000\n\n#### To build a docker image from the application\n\n    docker build -t my-app:1.0 .\n\nThe dot \".\" at the end of the command denotes location of the Dockerfile. --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F264gaurav%2Fmongo-docker-webapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F264gaurav%2Fmongo-docker-webapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F264gaurav%2Fmongo-docker-webapp/lists"}