{"id":21499935,"url":"https://github.com/osama-mohamed/shop_api_express","last_synced_at":"2026-04-18T09:35:05.476Z","repository":{"id":194493016,"uuid":"151448603","full_name":"osama-mohamed/shop_api_express","owner":"osama-mohamed","description":"https://www.linkedin.com/in/osama-mohamed-ms/","archived":false,"fork":false,"pushed_at":"2023-10-13T08:57:23.000Z","size":34,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-17T13:13:14.698Z","etag":null,"topics":["jwt","jwt-auth","jwt-authentication","jwt-token","mongodb","mongoose","node","node-js","nodejs","token","token-authetication"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/osama-mohamed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-10-03T16:59:05.000Z","updated_at":"2023-12-01T08:01:55.000Z","dependencies_parsed_at":"2023-09-13T16:20:50.481Z","dependency_job_id":null,"html_url":"https://github.com/osama-mohamed/shop_api_express","commit_stats":null,"previous_names":["osama-mohamed/shop_api_express"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/osama-mohamed/shop_api_express","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osama-mohamed%2Fshop_api_express","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osama-mohamed%2Fshop_api_express/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osama-mohamed%2Fshop_api_express/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osama-mohamed%2Fshop_api_express/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osama-mohamed","download_url":"https://codeload.github.com/osama-mohamed/shop_api_express/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osama-mohamed%2Fshop_api_express/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31964144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["jwt","jwt-auth","jwt-authentication","jwt-token","mongodb","mongoose","node","node-js","nodejs","token","token-authetication"],"created_at":"2024-11-23T17:19:42.602Z","updated_at":"2026-04-18T09:35:05.438Z","avatar_url":"https://github.com/osama-mohamed.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shop API Express By Express, Mongoose.\n\n[\u003cimg src=\"https://nodejs.org/static/images/logo.svg\" width=\"200\" title=\"Shop API Express\" \u003e]()\n[\u003cimg src=\"https://webassets.mongodb.com/_com_assets/cms/mongodb-logo-rgb-j6w271g1xn.jpg\" width=\"250\" title=\"Shop API Express\" \u003e]()\n\n\n## Shop API Express website contains:\n* User register\n* User login\n* Delete User\n* Show all products\n* Create new product with img\n* Show product detail\n* Update product\n* Delete product\n* Show all orders\n* Create new order\n* Show order detail\n* Delete order\n* Token (JWT) valid for one hour\n* Route protection\n\n\n## Usage :\n### Run project by :\n\n``` javascript\n\n# run \n\n1. npm i\n\n2. npm start\n\n```\n\nThat's it.\n\n## Done :\n\nNow the project is running at `http://localhost:3000` and your routes is:\n\n\n| Route                                                      | HTTP Method \t   | Description                           \t      |\n|:-----------------------------------------------------------|:----------------|:---------------------------------------------|\n| {host}/api/users/signup                          \t         | POST       \t   | User register                                |\n| {host}/api/users/login        \t                           | POST        \t   | User login                                   |\n| {host}/api/users/{userId}        \t                         | DELETE      \t   | Delete User                                  |\n| {host}/api/products                           \t           | GET       \t     | Show all products                            |\n| {host}/api/products                             \t         | POST       \t   | Create new product with img                  |\n| {host}/api/products/{productId}                  \t         | GET        \t   | Show product detail                          |\n| {host}/api/products/{productId}                  \t         | PATCH        \t | Update product                               |\n| {host}/api/products/{productId}                  \t         | DELETE        \t | Delete product                               |\n| {host}/api/orders                             \t           | GET        \t   | Show all orders                              |\n| {host}/api/orders                               \t         | POST        \t   | Create new order                             |\n| {host}/api/orders/{orderId}                  \t             | GET           \t | Show order detail                            |\n| {host}/api/orders/{orderId}                  \t             | DELETE        \t | Delete order                                 |\n\n\n\nFor detailed explanation on how project work, read the [Node Docs](https://nodejs.org/en/docs/), [Express Docs](http://expressjs.com/en/guide/routing.html) and [MongoDB Docs](https://docs.mongodb.com/)\n\n## Developer\nThis project made by [Osama Mohamed](https://www.linkedin.com/in/osama-mohamed-ms/)\n\n## License\nThis project is licensed under the [MIT License](https://opensource.org/licenses/MIT)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosama-mohamed%2Fshop_api_express","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosama-mohamed%2Fshop_api_express","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosama-mohamed%2Fshop_api_express/lists"}