{"id":22080640,"url":"https://github.com/ahmedhamid13/ecommerce-api","last_synced_at":"2026-04-09T21:42:55.596Z","repository":{"id":51158237,"uuid":"278735068","full_name":"ahmedhamid13/ecommerce-api","owner":"ahmedhamid13","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-28T01:11:56.000Z","size":208,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-29T04:25:02.695Z","etag":null,"topics":["api","postgresql","postman","ruby-on-rails"],"latest_commit_sha":null,"homepage":"https://ecommerce-api-q9rq.onrender.com","language":"Ruby","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/ahmedhamid13.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":"2020-07-10T21:18:55.000Z","updated_at":"2023-06-29T23:02:16.000Z","dependencies_parsed_at":"2025-01-29T04:23:49.344Z","dependency_job_id":"523ae0d6-e1e5-4ced-9033-e66413a71f95","html_url":"https://github.com/ahmedhamid13/ecommerce-api","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/ahmedhamid13%2Fecommerce-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedhamid13%2Fecommerce-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedhamid13%2Fecommerce-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedhamid13%2Fecommerce-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmedhamid13","download_url":"https://codeload.github.com/ahmedhamid13/ecommerce-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245168808,"owners_count":20571799,"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","postgresql","postman","ruby-on-rails"],"created_at":"2024-11-30T23:16:14.253Z","updated_at":"2026-04-09T21:42:55.566Z","avatar_url":"https://github.com/ahmedhamid13.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# E-Commerce API\n\n# Getting Start\n\n1. Download the zipped file and unzip it or Clone it\n    ```\n    git clone https://github.com/Ahmed-Abd-elhamid/ecommerce-api\n    ```\n2. cd inside the project\n    ```sh\n    cd ecommerce-api\n    ```\n3.  Run this command to install all gems we used\n    ```sh\n    bundle install\n    ```\n4. run this command to create your database\n    ```sh\n    rake db:create db:migrate\n    ```\n5. seed the database - generate dummy data\n    ```sh\n    rake db:seed\n    ```\n6. get api-endpoints by\n    ```sh\n    rake routes\n    ```\n7. Start your server\n    ```sh\n    rails server\n    ```\n\n# Production ecommece-api url\n    https://api-ecomm.herokuapp.com/\n\n# Postman Doc for ecommece-api url\n    https://documenter.getpostman.com/view/12318086/TVCcWTzB\n\n# API-EndPoints\n\n1) categoreis end-points\n\n    * GET       /categories\n    * GET       /categories/:id\n    * POST      /categories         \n        \u003e\u003e params: title\n    * PUT       /categories/:id          \n        \u003e\u003e params: title\n    * DELETE    /categories/:id\n\n2) sub_categoreis end-points\n\n    * GET       /sub_categories\n    * GET       /sub_categories/:id\n    * POST      /sub_categories         \n        \u003e\u003e params: title, category_id\n    * PUT       /sub_categories/:id          \n        \u003e\u003e params: title, category_id\n    * DELETE    /sub_categories/:id\n\n3) items end-points\n\n    * GET       /items\n    * GET       /items          \n        \u003e\u003e params: search\n    * GET       /items/:id\n    * POST      /items         \n        \u003e\u003e params: title, brand, description, stock, price, sub_category_id, images[]\n    * PUT       /items/:id\n        \u003e\u003e params: title, brand, description, stock, price, sub_category_id, images[] \n\n4) carts end-points\n\n    * GET       /carts\n    * GET       /carts/:id\n    * POST      /carts         \n        \u003e\u003e params: item_id, user_id, quantity \n    * POST    /carts/items/:id\n        \u003e\u003e params: item_id\n    * DELETE    /carts/:id\n\n5) orders end-points\n\n    * GET       /orders\n    * GET       /orders/:id\n    * POST      /orders         \n        \u003e\u003e params: user_id, country, city, address, telephone\n    * PUT      /orders/:id         \n        \u003e\u003e params: country, city, address, telephone \n    * PUT    orders/deliver/:id\n    * DELETE    /orders/:id\n\n6) users end-points\n\n    * GET       /users\n    * GET       /users/:id\n    * DELETE       /users/:id\n    * POST      /users         \n        \u003e\u003e params: name, email, password, password_confirmation, avatar\n    * PUT      /users         \n        \u003e\u003e params: password, password_confirmation\n    * DELETE    /users\n    * POST      /users/sign_in        \n        \u003e\u003e params: email, password\n    * DELETE    /users/sign_out\n        \u003e\u003e params: uid, access-token, client\n\n    To Authenticate all requests you should pass this params: uid, access-token, client, with every request in header.. but for now all request doesn't require authentication.\n\n# By: Ahmed Abdelhamid\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmedhamid13%2Fecommerce-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmedhamid13%2Fecommerce-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmedhamid13%2Fecommerce-api/lists"}