{"id":18473311,"url":"https://github.com/thatbackendguy/swiftcart-backend","last_synced_at":"2026-04-06T21:33:16.573Z","repository":{"id":193736254,"uuid":"657082222","full_name":"thatbackendguy/swiftcart-backend","owner":"thatbackendguy","description":"SwiftCart is an ecommerce website. This repo consists of backend using NodeJS + ExpressJS + Mongoose","archived":false,"fork":false,"pushed_at":"2024-04-17T11:17:32.000Z","size":336,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T00:39:07.784Z","etag":null,"topics":["apis","backend","ecommerce","expressjs","mongoose","nodejs"],"latest_commit_sha":null,"homepage":"https://www.thatbackendguy.com/Projects/swiftcart","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/thatbackendguy.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":"2023-06-22T09:24:59.000Z","updated_at":"2024-04-21T11:27:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"edb1eb8a-f000-4b80-b98b-afc2549ece08","html_url":"https://github.com/thatbackendguy/swiftcart-backend","commit_stats":null,"previous_names":["yashpra1010/swiftcart-backend","thatbackendguy/swiftcart-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thatbackendguy/swiftcart-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatbackendguy%2Fswiftcart-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatbackendguy%2Fswiftcart-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatbackendguy%2Fswiftcart-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatbackendguy%2Fswiftcart-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thatbackendguy","download_url":"https://codeload.github.com/thatbackendguy/swiftcart-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatbackendguy%2Fswiftcart-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31491097,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T17:22:55.647Z","status":"ssl_error","status_checked_at":"2026-04-06T17:22:54.741Z","response_time":112,"last_error":"SSL_read: 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":["apis","backend","ecommerce","expressjs","mongoose","nodejs"],"created_at":"2024-11-06T10:24:28.041Z","updated_at":"2026-04-06T21:33:16.551Z","avatar_url":"https://github.com/thatbackendguy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftCart\n\nSwiftCart is an ecommerce website backend. This repo consists of backend using NodeJS + ExpressJS + Mongoose\n\n## API - Routes\n\n### User\n\n| Sr. No. | Description             | Request Type | Endpoint                               |\n|---------|-------------------------|--------------|----------------------------------------|\n| 1       | User Registration       | POST         | `/api/user/register`                  |\n| 2       | Forgot Password Token   | POST         | `/api/user/forgot-password-token`     |\n| 3       | Reset Password          | PUT          | `/api/user/reset-password/:token`     |\n| 4       | Update Password         | PUT          | `/api/user/password`                  |\n| 5       | User Login              | POST         | `/api/user/login`                     |\n| 6       | Admin Login             | POST         | `/api/user/admin-login`               |\n| 7       | User Cart               | POST         | `/api/user/cart`                      |\n| 8       | Apply Coupon to Cart    | POST         | `/api/user/cart/applycoupon`          |\n| 9       | Place Cash Order        | POST         | `/api/user/cart/cash-order`           |\n| 10      | Get All Users           | GET          | `/api/user/all-users`                 |\n| 11      | Get User Orders         | GET          | `/api/user/get-orders`                |\n| 12      | Get All Orders          | GET          | `/api/user/getallorders`              |\n| 13      | Get Orders by User      | POST         | `/api/user/getorderbyuser/:id`        |\n| 14      | Refresh Token           | GET          | `/api/user/refresh`                   |\n| 15      | Logout                  | GET          | `/api/user/logout`                    |\n| 16      | Get Wishlist            | GET          | `/api/user/wishlist`                  |\n| 17      | Get User Cart           | GET          | `/api/user/cart`                      |\n| 18      | Get User by ID          | GET          | `/api/user/:id`                       |\n| 19      | Empty User Cart         | DELETE       | `/api/user/empty-cart`                |\n| 20      | Delete User             | DELETE       | `/api/user/:id`                       |\n| 21      | Update Order            | PUT          | `/api/user/order/update-order/:id`    |\n| 22      | Edit User               | PUT          | `/api/user/edit-user`                 |\n| 23      | Save User Address       | PUT          | `/api/user/save-address`              |\n| 24      | Block User              | PUT          | `/api/user/block-user/:id`            |\n| 25      | Unblock User            | PUT          | `/api/user/unblock-user/:id`          |\n\n\n### Blog Category\n| Sr. No. | Description              | Request Type | Endpoint                    |\n|---------|--------------------------|--------------|-----------------------------|\n| 1       | Create Blog Category     | POST         | `/api/blogcategory/`        |\n| 2       | Update Blog Category     | PUT          | `/api/blogcategory/:id`     |\n| 3       | Delete Blog Category     | DELETE       | `/api/blogcategory/:id`     |\n| 4       | Get Blog Category by ID  | GET          | `/api/blogcategory/:id`     |\n| 5       | Get All Blog Categories  | GET          | `/api/blogcategory/`        |\n\n\n### Blog\n| Sr. No. | Description            | Request Type | Endpoint                  |\n|---------|------------------------|--------------|---------------------------|\n| 1       | Create Blog            | POST         | `/api/blog/`              |\n| 2       | Update Blog Content    | PUT          | `/api/blog/upload/:id`    |\n| 3       | Like Blog              | PUT          | `/api/blog/likes`         |\n| 4       | Dislike Blog           | PUT          | `/api/blog/dislikes`      |\n| 5       | Update Blog            | PUT          | `/api/blog/:id`           |\n| 6       | Get Blog by ID         | GET          | `/api/blog/:id`           |\n| 7       | Get All Blogs          | GET          | `/api/blog/`              |\n| 8       | Delete Blog            | DELETE       | `/api/blog/:id`           |\n\n\n### Brand\n| Sr. No. | Description          | Request Type | Endpoint              |\n|---------|----------------------|--------------|-----------------------|\n| 1       | Create Brand         | POST         | `/api/brand/`         |\n| 2       | Update Brand         | PUT          | `/api/brand/:id`      |\n| 3       | Delete Brand         | DELETE       | `/api/brand/:id`      |\n| 4       | Get Brand by ID      | GET          | `/api/brand/:id`      |\n| 5       | Get All Brands       | GET          | `/api/brand/`         |\n\n\n### Category\n| Sr. No. | Description           | Request Type | Endpoint                |\n|---------|-----------------------|--------------|-------------------------|\n| 1       | Create Category       | POST         | `/api/category/`        |\n| 2       | Update Category       | PUT          | `/api/category/:id`     |\n| 3       | Delete Category       | DELETE       | `/api/category/:id`     |\n| 4       | Get Category by ID    | GET          | `/api/category/:id`     |\n| 5       | Get All Categories    | GET          | `/api/category/`        |\n\n### Color\n\n| Sr. No. | Description        | Request Type | Endpoint            |\n|---------|--------------------|--------------|---------------------|\n| 1       | Create Color       | POST         | `/api/color/`       |\n| 2       | Update Color       | PUT          | `/api/color/:id`    |\n| 3       | Delete Color       | DELETE       | `/api/color/:id`    |\n| 4       | Get Color by ID    | GET          | `/api/color/:id`    |\n| 5       | Get All Colors     | GET          | `/api/color/`       |\n\n### Coupon\n\n| Sr. No. | Description          | Request Type | Endpoint            |\n|---------|----------------------|--------------|---------------------|\n| 1       | Create Coupon        | POST         | `/api/coupon/`      |\n| 2       | Get All Coupons     | GET          | `/api/coupon/`      |\n| 3       | Get Coupon by ID     | GET          | `/api/coupon/:id`   |\n| 4       | Update Coupon        | PUT          | `/api/coupon/:id`   |\n| 5       | Delete Coupon        | DELETE       | `/api/coupon/:id`   |\n\n### Enquiry\n\n| Sr. No. | Description         | Request Type | Endpoint            |\n|---------|---------------------|--------------|---------------------|\n| 1       | Create Enquiry      | POST         | `/api/enquiry/`    |\n| 2       | Update Enquiry      | PUT          | `/api/enquiry/:id` |\n| 3       | Delete Enquiry      | DELETE       | `/api/enquiry/:id` |\n| 4       | Get Enquiry by ID   | GET          | `/api/enquiry/:id` |\n| 5       | Get All Enquiries   | GET          | `/api/enquiry/`    |\n\n### Product\n\n| Sr. No. | Description         | Request Type | Endpoint               |\n|---------|---------------------|--------------|------------------------|\n| 1       | Get All Products   | GET          | `/api/product/`        |\n| 2       | Get Product by ID  | GET          | `/api/product/:id`     |\n| 3       | Add to Wishlist    | PUT          | `/api/product/wishlist`|\n| 4       | Rate Product       | PUT          | `/api/product/rating`  |\n| 5       | Create Product     | POST         | `/api/product/`        |\n| 6       | Update Product     | PUT          | `/api/product/:id`     |\n| 7       | Delete Product     | DELETE       | `/api/product/:id`     |\n\n### Upload Images\n\n| Sr. No. | Description            | Request Type | Endpoint                       |\n|---------|------------------------|--------------|--------------------------------|\n| 1       | Delete Uploaded Image  | DELETE       | `/api/upload/delete-img/:id`  |\n\n\n## List of ENVs\n* MONGODB_URI\n* JWT_SECRET\n* SMTP_HOST\n* SMTP_EMAIL\n* SMTP_PASSWORD\n\n## GitHub Repo\n\u003ca href=\"https://github.com/thatbackendguy/swiftcart-backend\"\u003e\u003cimg src=\"https://opengraph.githubassets.com/c1a49735c0320cfcf735c4db8c4742f5e21db4fd2b1f5578fee451ea74454dce/thatbackendguy/swiftcart-backend\" width=\"50%\"/\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthatbackendguy%2Fswiftcart-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthatbackendguy%2Fswiftcart-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthatbackendguy%2Fswiftcart-backend/lists"}