{"id":25187144,"url":"https://github.com/ahmedmeshref/ecommerce-api-microservices","last_synced_at":"2026-04-07T22:31:31.324Z","repository":{"id":136028081,"uuid":"337517899","full_name":"ahmedmeshref/ecommerce-api-microservices","owner":"ahmedmeshref","description":"Microservices E-commerce API built with node.js","archived":false,"fork":false,"pushed_at":"2021-02-28T11:57:09.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-11T05:36:58.700Z","etag":null,"topics":["api","docker","docker-compose","docker-image","json","microservices","nodejs"],"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/ahmedmeshref.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":"2021-02-09T19:47:35.000Z","updated_at":"2021-02-28T11:57:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"49ff9da2-fe22-4611-a215-74922faac889","html_url":"https://github.com/ahmedmeshref/ecommerce-api-microservices","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ahmedmeshref/ecommerce-api-microservices","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedmeshref%2Fecommerce-api-microservices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedmeshref%2Fecommerce-api-microservices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedmeshref%2Fecommerce-api-microservices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedmeshref%2Fecommerce-api-microservices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmedmeshref","download_url":"https://codeload.github.com/ahmedmeshref/ecommerce-api-microservices/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedmeshref%2Fecommerce-api-microservices/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31532194,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"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":["api","docker","docker-compose","docker-image","json","microservices","nodejs"],"created_at":"2025-02-09T19:45:04.221Z","updated_at":"2026-04-07T22:31:31.305Z","avatar_url":"https://github.com/ahmedmeshref.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ecommerce Microservices Applications\n**Microservice implementation with Nodejs and MongoDB**\n\nThere are 3 microservices and each has its own collection\n\n- **Users microservice:** Creates users and manages authentication\n- **Products microservice:** Creates products and manages product\n- **Orders microservice:** Manages the orders and interacts with the users and products collections to retrieve data. \n\nYou can manipulate the port numbers that the services run on on the .env file but to not forget to update the same on the Dockerfiles\n\n## Running the applications\n### Manually\nUpdate the database connection by updating the variable DATABASE_URL on all the .env files in the app folders\n\nInstall the node_modules in each of the applications by running npm install \n\nRun the server nodemon serve\n\nInteract with the api via postman\n\n### Docker\nBuild docker images for each of the applications eg `docker build --no-cache --rm --tag users:v1 .`\n\nRun the docker container for each application eg: `docker run --rm -d -p 3000:3000 users:v1`\n\nInteract with the api via postman\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmedmeshref%2Fecommerce-api-microservices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmedmeshref%2Fecommerce-api-microservices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmedmeshref%2Fecommerce-api-microservices/lists"}