{"id":29016400,"url":"https://github.com/saumyajeet-varma/docker-testapp","last_synced_at":"2026-05-10T03:13:38.126Z","repository":{"id":301004250,"uuid":"1007864918","full_name":"Saumyajeet-Varma/Docker-TestApp","owner":"Saumyajeet-Varma","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-24T16:45:39.000Z","size":5935,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-24T17:46:46.906Z","etag":null,"topics":["docker","docker-compose","docker-image","dockerfile"],"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/Saumyajeet-Varma.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-06-24T16:44:31.000Z","updated_at":"2025-06-24T16:49:23.000Z","dependencies_parsed_at":"2025-06-24T17:56:56.159Z","dependency_job_id":null,"html_url":"https://github.com/Saumyajeet-Varma/Docker-TestApp","commit_stats":null,"previous_names":["saumyajeet-varma/docker-testapp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Saumyajeet-Varma/Docker-TestApp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saumyajeet-Varma%2FDocker-TestApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saumyajeet-Varma%2FDocker-TestApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saumyajeet-Varma%2FDocker-TestApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saumyajeet-Varma%2FDocker-TestApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Saumyajeet-Varma","download_url":"https://codeload.github.com/Saumyajeet-Varma/Docker-TestApp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saumyajeet-Varma%2FDocker-TestApp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261960448,"owners_count":23236575,"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","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","docker-image","dockerfile"],"created_at":"2025-06-25T22:08:12.964Z","updated_at":"2026-05-10T03:13:38.080Z","avatar_url":"https://github.com/Saumyajeet-Varma.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Test 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.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.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaumyajeet-varma%2Fdocker-testapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaumyajeet-varma%2Fdocker-testapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaumyajeet-varma%2Fdocker-testapp/lists"}