{"id":21203990,"url":"https://github.com/dev-adnani/scarvs-backend","last_synced_at":"2025-10-30T14:21:07.624Z","repository":{"id":167726400,"uuid":"426950451","full_name":"Dev-Adnani/Scarvs-Backend","owner":"Dev-Adnani","description":"A Shoe Ecommerce Backend API , Made In Node.js With Help Of Typescript , Express , PostgresSQL [DB]","archived":false,"fork":false,"pushed_at":"2023-05-29T06:38:20.000Z","size":69,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T11:41:25.512Z","etag":null,"topics":["api-documentation","api-rest","api-server","backend-api","backend-server","expressjs","node","nodejs","postgresql","scarvs","shoe-api","typeorm","typescript"],"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/Dev-Adnani.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-11-11T09:57:03.000Z","updated_at":"2023-12-19T02:34:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"d90b2aec-a0e7-4c5b-ab9e-c57b022b4c28","html_url":"https://github.com/Dev-Adnani/Scarvs-Backend","commit_stats":null,"previous_names":["dev-adnani/scarvs-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Dev-Adnani/Scarvs-Backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dev-Adnani%2FScarvs-Backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dev-Adnani%2FScarvs-Backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dev-Adnani%2FScarvs-Backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dev-Adnani%2FScarvs-Backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dev-Adnani","download_url":"https://codeload.github.com/Dev-Adnani/Scarvs-Backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dev-Adnani%2FScarvs-Backend/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264545157,"owners_count":23625403,"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-documentation","api-rest","api-server","backend-api","backend-server","expressjs","node","nodejs","postgresql","scarvs","shoe-api","typeorm","typescript"],"created_at":"2024-11-20T20:28:25.419Z","updated_at":"2025-10-30T14:21:02.571Z","avatar_url":"https://github.com/Dev-Adnani.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Scarvs - A Shoe Ecommerce Backend\n\nA Shoe Ecommerce Backend API , Made In Node.js With Help Of Typescript , Express , PostgresSQL [DB]\n\n\n## Run Locally\n\nClone the project\n\n```bash\n  git clone https://github.com/Dev-Adnani/Scarvs-Backend\n```\n\nGo to the project directory\n\n```bash\n  cd Scarvs-Backend\n```\n\nInstall dependencies\n\n```bash\n  npm install\n```\n\nStart the server\n\n```bash\n  npm run dev\n```\n\n\n## Environment Variables\n\nTo run this project, you will need to add the following environment variables to your .env file\n\n`JWT_SECRET`\n\n`PORT`\n\n`Host`\n\n`DB_User`\n\n`DB_Password`\n\n`Database`\n\n`DB_Port`\n\n`DATABASE_URL`\n\n\n\n\n\n\n\n## API Reference\n\n#### Server Check\n\n```http\n  GET https://scarvs-backend.herokuapp.com\n```\n\n# Authentication\n\n#### Signup\n\n```http\n  POST /auth/signup\n```\n\n| Parameter           | Type     | Description                             |\n| :--------           | :------- | :--------------------------------       |\n| `useremail`         | `string` | **Required**. User's Email              |\n| `userpassword`      | `string` | **Required**. User's Password           |\n| `username`          | `string` | **Required**. User's Username           |\n\n#### Login\n\n```http\n  POST /auth/login\n```\n\n| Parameter           | Type     | Description                             |\n| :--------           | :------- | :--------------------------------       |\n| `useremail`         | `string` | **Required**. User's Email              |\n| `userpassword`      | `string` | **Required**. User's Password           |\n\n#### User Data Access\n\n```http\n  GET /auth/verify\n```\n\n| Headers             | Type     | Description                             |\n| :--------           | :------- | :--------------------------------       |\n| `Authorization`     | `string` | **Required**. JWT Token, Which You Get After Signup/Login            |\n\n\n#### Login\n\n```http\n  POST /auth/change-password\n```\n\n| Parameter             | Type     | Description                                |\n| :--------             | :------- | :--------------------------------          |\n| `useremail`           | `string` | **Required**. User's Email                 |\n| `oluserpassword`      | `string` | **Required**. User's Old Password          |\n| `newuserpassword`     | `string` | **Required**. User's New Password          |\n\n\n\n# User Info\n\n\n#### Add User Info\n\n```http\n  POST /info/add-user-info\n```\n\n| Parameter             | Type     | Description                                |\n| :--------             | :------- | :--------------------------------          |\n| `useremail`           | `string` | **Required**. User's Email                 |\n| `user_address`        | `string` | **Required**. User's Address               |\n| `user_phone_no`       | `string` | **Required**. User's Phone No              |\n\n\n#### Check User Info\n\n```http\n  GET /info/{useremail}\n```\n\n#### Check User Info\n\n```http\n  GET /auth/getUsers\n```\n| Headers             | Type     | Description                                             |\n| :--------           | :------- | :--------------------------------                       |\n| `Authorization`     | `string` | **Required**. JWT Token, Which You Get After Signup/Login            |\n\n\n# Product \n\n#### Add Product\n\n```http\n  POST /product/add-products\n```\n\n| Parameter                   | Type     | Description                                |\n| :--------                   | :------- | :--------------------------------          |\n| `product_name`              | `string` | **Required**. Product Name                 |\n| `product_description`       | `string` | **Required**. Product Description          |\n| `product_price`             | `bigint` | **Required**. Product Price                |\n| `product_category`          | `string` | **Required**. Product Category             |\n| `product_image`             | `string` | **Required**. Product Image URL            |\n\n#### Get All Products\n\n```http\n  GET /product\n```\n\n#### Get Specific Product \n\n```http\n  GET /product/details/{$id}\n```\n\n#### Get Delete Product From DB\n\n```http\n  DEL /product/delete/{$id}\n```\n| Headers             | Type     | Description                                             |\n| :--------           | :------- | :--------------------------------                       |\n| `Authorization`     | `string` | **Required**. Secret Key                                |\n\n#### Search Specific From Products\n\n```http\n  GET /product/search/{$product_name}\n```\n\n#### Get Products By Category \n\n```http\n  GET /product/category/{$product_category}\n```\n\n# Cart \n\n#### Add To Cart For A Particular User\n\n```http\n  POST /cart/add-to-cart\n```\n\n| Parameter                   | Type     | Description                                |\n| :--------                   | :------- | :--------------------------------          |\n| `useremail`                 | `string` | **Required**. User's Email                 |\n| `product_name`              | `string` | **Required**. Product Name                 |\n| `product_price`             | `bigint` | **Required**. Product Price                |\n| `product_category`          | `string` | **Required**. Product Category             |\n| `product_image`             | `string` | **Required**. Product Image URL            |\n| `product_size`              | `string` | **Required**. Shoes Size                   |\n\n#### Check Cart For A Particular User\n\n```http\n  GET /cart/{$useremail}\n```\n\n#### Delete Cart Item For A Particular User\n\n```http\n  DEL /cart/{$id}\n```\n## Support\n\nFor support, email dev.adnani26@gmail.com\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-adnani%2Fscarvs-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-adnani%2Fscarvs-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-adnani%2Fscarvs-backend/lists"}