{"id":22160688,"url":"https://github.com/nerkarso/docker-shopping-cart","last_synced_at":"2026-07-02T10:32:31.154Z","repository":{"id":147721755,"uuid":"515346177","full_name":"nerkarso/docker-shopping-cart","owner":"nerkarso","description":"This is a sample app built with Express and MongoDB running on Docker","archived":false,"fork":false,"pushed_at":"2022-09-06T00:15:51.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-11T07:29:42.137Z","etag":null,"topics":["docker"],"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/nerkarso.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":"2022-07-18T21:26:45.000Z","updated_at":"2022-07-18T22:16:10.000Z","dependencies_parsed_at":"2023-06-25T22:49:40.769Z","dependency_job_id":null,"html_url":"https://github.com/nerkarso/docker-shopping-cart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nerkarso/docker-shopping-cart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerkarso%2Fdocker-shopping-cart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerkarso%2Fdocker-shopping-cart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerkarso%2Fdocker-shopping-cart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerkarso%2Fdocker-shopping-cart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nerkarso","download_url":"https://codeload.github.com/nerkarso/docker-shopping-cart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerkarso%2Fdocker-shopping-cart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35043933,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-02T02:00:06.368Z","response_time":173,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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"],"created_at":"2024-12-02T04:09:14.613Z","updated_at":"2026-07-02T10:32:31.135Z","avatar_url":"https://github.com/nerkarso.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shopping Cart\n\nThis is a sample app built with Express and MongoDB running on Docker following the tutorial below.\n\n[![Video](https://i.ytimg.com/vi/Kyx2PsuwomE/mqdefault.jpg)](https://www.youtube.com/watch?v=Kyx2PsuwomE)\n\n## Stack\n\n- Docker\n- Node.js\n- Express\n- MongoDB\n- ejs\n\n## Getting Started\n\nFollow these steps to get the app up and running.\n\n1. Install the Node.js dependencies.\n\n```\nnpm install\n```\n\n2. Make a copy of `.env.example` to `.env.development` and update the credentials.\n\n3. Start the server in development mode.\n\n```sh\nnpm run dev\n```\n\n## Production\n\nFollow these steps to run the app in production.\n\n1. Make a copy of `.env.example` to `.env.production` and update the credentials.\n\n2. Create the docker container.\n\n```sh\ndocker-compose up\n```\n\n## Docker Commands\n\n**Create or destroy the docker container**\n\n```sh\ndocker-compose up\ndocker-compose down\n```\n\n**Start or stop the web app**\n\n```sh\ndocker container start shopping-cart-web\ndocker container stop shopping-cart-web\n```\n\n**Start or stop the database**\n\n```sh\ndocker container start shopping-cart-db\ndocker container stop shopping-cart-db\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerkarso%2Fdocker-shopping-cart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnerkarso%2Fdocker-shopping-cart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerkarso%2Fdocker-shopping-cart/lists"}