{"id":22455495,"url":"https://github.com/ahmedalaa14/developing-with-docker","last_synced_at":"2026-04-11T19:35:59.302Z","repository":{"id":213016571,"uuid":"732805615","full_name":"ahmedalaa14/developing-with-docker","owner":"ahmedalaa14","description":"developing with docker using nodejs app","archived":false,"fork":false,"pushed_at":"2024-01-05T20:03:06.000Z","size":5936,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T13:18:06.095Z","etag":null,"topics":["docker","docker-compose","express","mongodb","nodejs"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/ahmedalaa14.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}},"created_at":"2023-12-17T21:56:40.000Z","updated_at":"2024-02-16T23:45:59.000Z","dependencies_parsed_at":"2024-01-03T13:24:21.290Z","dependency_job_id":"87990e9c-188f-44bc-bfbe-a08de808f982","html_url":"https://github.com/ahmedalaa14/developing-with-docker","commit_stats":null,"previous_names":["ahmedalaa14/js-docker-demo-app","ahmedalaa14/developing-with-docker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ahmedalaa14/developing-with-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedalaa14%2Fdeveloping-with-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedalaa14%2Fdeveloping-with-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedalaa14%2Fdeveloping-with-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedalaa14%2Fdeveloping-with-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmedalaa14","download_url":"https://codeload.github.com/ahmedalaa14/developing-with-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedalaa14%2Fdeveloping-with-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31693272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-compose","express","mongodb","nodejs"],"created_at":"2024-12-06T07:12:01.067Z","updated_at":"2026-04-11T19:35:59.280Z","avatar_url":"https://github.com/ahmedalaa14.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"## demo app - developing with Docker\n\nThis demo app shows a simple user profile app set up using \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### With Docker Compose\n\n#### To start the application\n\nStep 1: start mongodb and mongo-express\n\n    docker-compose -f docker-compose.yml 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.\n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmedalaa14%2Fdeveloping-with-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmedalaa14%2Fdeveloping-with-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmedalaa14%2Fdeveloping-with-docker/lists"}