{"id":21023155,"url":"https://github.com/tkssharma/e-commersehub","last_synced_at":"2025-05-15T08:32:50.126Z","repository":{"id":60586025,"uuid":"170856777","full_name":"tkssharma/e-CommerseHub","owner":"tkssharma","description":"Microservices in Node js with React","archived":false,"fork":false,"pushed_at":"2020-01-04T17:50:01.000Z","size":1517,"stargazers_count":85,"open_issues_count":4,"forks_count":47,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-03T06:41:52.515Z","etag":null,"topics":["express","gateway","js","micrtoserv","nginx","node","payment","react","reactjs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/tkssharma.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}},"created_at":"2019-02-15T11:46:52.000Z","updated_at":"2025-03-03T03:55:43.000Z","dependencies_parsed_at":"2022-10-01T18:50:23.781Z","dependency_job_id":null,"html_url":"https://github.com/tkssharma/e-CommerseHub","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkssharma%2Fe-CommerseHub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkssharma%2Fe-CommerseHub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkssharma%2Fe-CommerseHub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkssharma%2Fe-CommerseHub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tkssharma","download_url":"https://codeload.github.com/tkssharma/e-CommerseHub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254304645,"owners_count":22048446,"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":["express","gateway","js","micrtoserv","nginx","node","payment","react","reactjs"],"created_at":"2024-11-19T11:17:04.325Z","updated_at":"2025-05-15T08:32:45.100Z","avatar_url":"https://github.com/tkssharma.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Application for e-commerce Hub\n\n\nREST API to support application features\n  - Express as web framework with Typescript\n  - Passport js for social authentication \n  - Express CORS enabled\n  - boom for error codes \u0026 Joi for Validation\n  - Winston for logging and express minitor for monitoring\n  - Mongoose as ODM driver\n  - eslint validation extending airbnb styleguide \n  - git hooks \u0026 CI/CD in place\n  - Typescript based compilation tsc compiler\n  - TDD in progress with Mocha\n  - JWT based authentication\n  - multiple Mongoose collection with referencing\n  - payment gateway Integration\n  - Heroku deployment\n  - Mini e-commerce platform \n\n# Cart Application #\n\n\"It's just simple application to provide REST APIs for mini e-commerce platform where individual can buy products and can pay the bills\n - microservices architecture\n - Client application in React\n - User Auth microservices\n - Cart services\n - Admin Microservices  \n\n![deividing services](/screens/02.png \"title\")\n![Micro services with Node JS](/screens/03.png \"title\")\n\n\n\n```\n# Application Execution\n```javascript\ngit clone  repo\nnpm install\nnpm run startdev\ntsc -- watch\n```\n# Application configuration\n```javascript\nenv.sh need to be added locally \nexport NODE_ENV=\"dev\"\nexport PORT=\"3005\"\nexport MONGOURL=\"mongodb://mongo/hello\"\nexport EXPRESS_SESSION_SECRET=\"************************\"\nexport F_CLIENTID=\"**************\"\nexport F_CLIENTSECRET=\"**********************\"\n```\n# update etc/hosts file\n```\n##\n# Host Database\n#\n# localhost is used to configure the loopback interface\n# when the system is booting.  Do not change this entry.\n##\n127.0.0.1       localhost\n255.255.255.255 broadcasthost\n::1             localhost\n127.0.0.1       mysql redis mongo\n127.0.0.1       ms-commerce.com\n```\n# Sevices end-point\n\n- http://ms-commerce.com/api/v1  Auth services\n- http://ms-commerce.com/admin/v1 Admin APIs\n- http://ms-commerce.com/admin/v1  Cart APIs\n\n# Application NPM Script\n```javascript\n\"start\": \"cd dist \u0026\u0026  nodemon server.js\",\n\"prestart\": \"tsc \u0026\u0026 cp -r uploads dist/ \u0026\u0026 cp -r app/global dist/app/\",\n\"clean\" : \"rm -rf dist\",\n\"copy\" : \"cp -r uploads dist/ \u0026\u0026 cp -r app/global dist/app/\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkssharma%2Fe-commersehub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftkssharma%2Fe-commersehub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkssharma%2Fe-commersehub/lists"}