{"id":19187883,"url":"https://github.com/bria222/nodejs-e-commerce-api","last_synced_at":"2026-05-09T14:15:55.490Z","repository":{"id":204930136,"uuid":"712973399","full_name":"Bria222/Nodejs-E-commerce-api","owner":"Bria222","description":"This e-commerce shop API, developed using Node.js and Express, offers a seamless and secure platform for online shopping. It enables customers to browse a wide range of products, add items to their cart, and complete transactions with the added convenience and trust of Stripe payment processing.","archived":false,"fork":false,"pushed_at":"2023-11-06T19:38:42.000Z","size":133,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-01-04T05:52:33.981Z","etag":null,"topics":["api-rest","express","javascript","jsonwebtoken","jwt","mangodb","nodejs"],"latest_commit_sha":null,"homepage":"https://github.com/Bria222/Node-js-Shop-api/","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/Bria222.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}},"created_at":"2023-11-01T15:27:31.000Z","updated_at":"2023-11-03T11:29:04.000Z","dependencies_parsed_at":"2023-11-03T13:42:35.393Z","dependency_job_id":"61103938-e491-4212-bc74-f8c5e7faddf3","html_url":"https://github.com/Bria222/Nodejs-E-commerce-api","commit_stats":{"total_commits":24,"total_committers":1,"mean_commits":24.0,"dds":0.0,"last_synced_commit":"67d3eebb0ee8fc3e3c28ab9a7f2a2ce061d6cf43"},"previous_names":["bria222/node-js-auth-api","bria222/nodejs-e-commerce-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bria222%2FNodejs-E-commerce-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bria222%2FNodejs-E-commerce-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bria222%2FNodejs-E-commerce-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bria222%2FNodejs-E-commerce-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bria222","download_url":"https://codeload.github.com/Bria222/Nodejs-E-commerce-api/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240264929,"owners_count":19774067,"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":["api-rest","express","javascript","jsonwebtoken","jwt","mangodb","nodejs"],"created_at":"2024-11-09T11:21:47.247Z","updated_at":"2026-05-09T14:15:50.439Z","avatar_url":"https://github.com/Bria222.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# E-commerce Shop API with Stripe Payment\n\nThis e-commerce shop API, developed using Node.js and Express, offers a seamless and secure platform for online shopping. It enables customers to browse a wide range of products, add items to their cart, and complete transactions with the added convenience and trust of Stripe payment processing.\n\n## technologies\n\n## _[Nodejs,express,mangoDb]_\n\n## run on postman [Postman API Documentation](https://documenter.getpostman.com/view/17773746/2s9YXe7Pdt#cd09df62-3b90-42a5-a997-b0bfe7cc1c88)\n\n## usage\n\n### register http://localhost:5000/api/auth/register\n\n`{\n  \"username\":\"brian\",\n  \"email\":\"brian@gmail.com\",\n  \"password\":\"1234\"\n}`\n\n### login http://localhost:5000/api/auth/login\n\n`{\n  \"username\":\"brian\",\n  \"password\":\"1234\"\n}`\n\n### get users http://localhost:5000/api/users\n\n### PUT to update user http://localhost:5000/api/users/userId\n\n`{\n\"username\":\"peterupdated\",\n\"email\":\"user@gmail.com\",\n\"isAdmin\": true,\n\"password\":\"1234\"\n\n}`\n\n### get users statistics http://localhost:5000/api/users/stats\n\n### add product http://localhost:5000/api/products\n\n`{\n  \"title\": \"Sample Product\",\n  \"desc\": \"A sample product description.\",\n  \"img\": \"sample-product.jpg\",\n  \"categories\": [\"Category1\", \"Category2\"],\n  \"size\": \"Medium\",\n  \"color\": \"Blue\",\n  \"price\": 19.99\n}`\n\n### get all orders http://localhost:5000/api/orders\n\n### POST create order http://localhost:5000/api/orders\n\n`{\n  \"userId\": \"654442e0c44b02a0d4bdeec8e\",\n  \"products\": [\n    {\n      \"productId\": \"\",\n      \"quantity\": 2\n    },\n    {\n      \"productId\": \"654448fc9f7a46cc18fdd1df\",\n      \"quantity\": 3\n    }\n  ],\n  \"amount\": 100.0,\n  \"address\": {\n    \"street\": \"123 Main Street\",\n    \"city\": \"Exampleville\",\n    \"zipcode\": \"12345\"\n  }\n}\n`\n\n### get all carts http://localhost:5000/api/carts\n\n### POST create cart http://localhost:5000/api/carts\n\n`{\n\"userId\": \"654442e0c44b02a0d4bdeec8e\",\n\"products\": [\n{\n\"productId\": \"\",\n\"quantity\": 2\n},\n{\n\"productId\": \"654448fc9f7a46cc18fdd1df\",\n\"quantity\": 3\n}\n]\n\n}\n`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbria222%2Fnodejs-e-commerce-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbria222%2Fnodejs-e-commerce-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbria222%2Fnodejs-e-commerce-api/lists"}