{"id":15091664,"url":"https://github.com/ruslanzharkov/nodejs-shopping-cart","last_synced_at":"2026-03-09T21:05:53.397Z","repository":{"id":40775483,"uuid":"107886767","full_name":"ruslanzharkov/nodejs-shopping-cart","owner":"ruslanzharkov","description":"NodeJS / Express / MongoDB - Shopping Cart (monolithic app with handlebars)","archived":false,"fork":false,"pushed_at":"2025-05-09T06:46:54.000Z","size":1407,"stargazers_count":67,"open_issues_count":1,"forks_count":29,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-19T12:09:36.827Z","etag":null,"topics":["express","expressjs","handlebars","javascript","mongodb","mongoose","node","nodejs","shopping-cart"],"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/ruslanzharkov.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":"2017-10-22T17:21:17.000Z","updated_at":"2025-05-09T06:46:54.000Z","dependencies_parsed_at":"2024-10-14T05:20:42.805Z","dependency_job_id":"f3d790b1-29b5-4167-85ab-571f09e6e852","html_url":"https://github.com/ruslanzharkov/nodejs-shopping-cart","commit_stats":{"total_commits":90,"total_committers":3,"mean_commits":30.0,"dds":0.5444444444444445,"last_synced_commit":"0f0de8e69cc59e61a8b7acf820e48265dfefa4e3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ruslanzharkov/nodejs-shopping-cart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruslanzharkov%2Fnodejs-shopping-cart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruslanzharkov%2Fnodejs-shopping-cart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruslanzharkov%2Fnodejs-shopping-cart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruslanzharkov%2Fnodejs-shopping-cart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruslanzharkov","download_url":"https://codeload.github.com/ruslanzharkov/nodejs-shopping-cart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruslanzharkov%2Fnodejs-shopping-cart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30312156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["express","expressjs","handlebars","javascript","mongodb","mongoose","node","nodejs","shopping-cart"],"created_at":"2024-09-25T10:42:32.607Z","updated_at":"2026-03-09T21:05:53.383Z","avatar_url":"https://github.com/ruslanzharkov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node js, Mongodb, Express js Shopping Cart\n\n![image](https://user-images.githubusercontent.com/28437795/124288418-d3633a80-db59-11eb-8ecd-f01dba239fb7.png)\n\nThis project works with Stripe api on Nodejs and on the client representation as well.\nGo to [Stripe](http://stripe.com/) for more information\n\n## Requirements\n\n- [community mongodb installed locally](https://www.mongodb.com/docs/manual/administration/install-community/) or [cloud version](https://www.mongodb.com/atlas/database)\n- node.js\n- account on Stripe.js (for your test purchases)\n\n## Used middlewares\n\n- connect-mongo\n- express cookie\n- nodemon\n- morgan\n\n## Migrations\n\nCurrent app implementation doesn't have a UI for adding new products,\nbut you can run script with migrations to add some products into DB and receive it from the application's UI.\nMake sure MongoDB is installed and running first.\n\n```npm\nnpm run migration:write\n```\n\n## ENV\n\nBefore running the app, you should create your own `.env` file in the root with the following variables:\n\n```dotenv\nPORT=\u003cplace your port here\u003e\nSTRIPE_SECRET_KEY=\u003cyour stripe secret test key for server\u003e\nMONGO_DB_URL='mongodb://127.0.0.1:27017' or remote mongo address\n```\n\nNote: make sure to add publc stripe key to `public/javascripts/checkout.js` in order to configure both server and client parts of Stripe.\n\n```javascript\nconst stripePublishableTestKey = null;\n// your public key should be here for proper Stripe work\n// otherwise app generates en error with alert message\n\nif (!stripePublishableTestKey) {\n  const error = 'Please add a Stripe.js public key';\n  alert(error);\n  throw new Error(error);\n}\n\nStripe.setPublishableKey(stripePublishableTestKey);\n```\n\n### Running\n\n- npm install\n- add stripe test key to ENV file and to `checkout.js` (publishable not secret key for sender identification)\n- npm start\n- open browser at specified PORT env variables\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruslanzharkov%2Fnodejs-shopping-cart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruslanzharkov%2Fnodejs-shopping-cart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruslanzharkov%2Fnodejs-shopping-cart/lists"}