{"id":20672497,"url":"https://github.com/abhithakur7080/ecommerce","last_synced_at":"2026-04-12T15:03:17.450Z","repository":{"id":228049476,"uuid":"768487666","full_name":"Abhithakur7080/ecommerce","owner":"Abhithakur7080","description":"In this app you can find all the ecommerce related API used by backend server also you can clone and use checkout process available below in Readme.md","archived":false,"fork":false,"pushed_at":"2024-12-10T12:39:11.000Z","size":613,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T14:15:20.625Z","etag":null,"topics":["cloudinary","expressjs","jimp","mongodb","nodejs"],"latest_commit_sha":null,"homepage":"https://ecommerce-trendbazaar.vercel.app","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/Abhithakur7080.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-07T07:11:54.000Z","updated_at":"2024-12-10T12:39:15.000Z","dependencies_parsed_at":"2024-06-11T14:11:39.774Z","dependency_job_id":"c8087e33-666e-47d9-af4c-a5bccfdb461c","html_url":"https://github.com/Abhithakur7080/ecommerce","commit_stats":null,"previous_names":["abhithakur7080/ecommerce"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abhithakur7080%2Fecommerce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abhithakur7080%2Fecommerce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abhithakur7080%2Fecommerce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abhithakur7080%2Fecommerce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Abhithakur7080","download_url":"https://codeload.github.com/Abhithakur7080/ecommerce/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242899997,"owners_count":20203704,"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":["cloudinary","expressjs","jimp","mongodb","nodejs"],"created_at":"2024-11-16T20:37:48.477Z","updated_at":"2026-04-12T15:03:17.442Z","avatar_url":"https://github.com/Abhithakur7080.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ecommerce API \n- Hosted Link [Explore](https://ecommerce-trendbazaar.vercel.app)\n### Frontend\n- [https://trendbazaar-ecommerce.vercel.app](https://trendbazaar-ecommerce.vercel.app) - Explore this base url then use all endpoints.\n### Installation\nBelow Provided step-by-step instructions on how to install and set up your project locally.\nInclude any prerequisites, such as Node.js and MongoDB versions. For example:\n\n##### project installation setup\n- Clone the repository: `git clone https://github.com/Abhithakur7080/ecommerce.git`\n- Navigate to the project directory: `cd ecommerce`\n- Install dependencies: `npm install` or `npm i`\n  \n##### MongoDB setup\n- visit: `https://account.mongodb.com/account/login`\n- After logged in create new project\n- set up by connect with the database url\n  \n##### cloudinary setup\n- visit: `https://cloudinary.com/users/login`\n- After logged in set up API key and many info to connect.\n\n##### Set up environment variables: `.env` variables\n``` dotenv\nPORT= your running port\nCORS_ORIGIN= cross origin port\n\n# for mongo database\nMONGODB_URL= your mongo url\n\n# for password secret\nJWT_SECRET = your jwt secret\n\n# for node mailer\nMAIL_ID = your_mail_id\nMAIL_PASSWORD = your_mail_password\n\n# for cloudinary database\nCLOUD_NAME=your_cloud_name\nAPI_KEY=your_key\nAPI_SECRET=your_secret\n```\n  \n\n### Usage\nOn using this server command it:\n``` bash\n# run the server\nnpm run dev\n```\n\n### API Endpoints\nHere are listed all available API endpoints along with a brief description of each.\n##### USER/ADMIN\n- `POST /api/user/register`: creating new user\n\n- `POST /api/user/user/login`: user logged in\n- `POST /api/user/admin/login`: admin logged in\n- `POST /api/user/forgot-password`: forgot user password\n- `POST /api/user/cart`: product add to cart\n- `POST /api/user/coupon`: apply a coupon on purchase\n- `POST /api/user/cart/cash-order`: on cash on delivery order\n- `GET /api/user/all-users`: View all user details\n- `GET /api/user/wishlist`: get user added products in wishlist\n\n- `GET /api/user/cart`: get user cart\n- `GET /api/user/order`: get user orders\n\n- `PUT /api/user/reset-password/:token`: for reset user password\n- `PUT /api/user/password`: for change user password\n- `PUT /api/user/edit`: for update user profile\n- `PUT /api/user/block-user/:id`: admin can block a user\n- `PUT /api/user/unblock-user/:id`: admin can unblock a user\n- `PUT /api/user/wishlist`: product added to wishlist\n- `PUT /api/user/address`: update user address for checkout\n- `PUT /api/user/update/order-status/:id`: update user order status\n\n- `DELETE /api/user/:id`: user can delete her account\n- `DELETE /api/user/empty/cart`: cart will be empty after purchased\n\n\u003chr\u003e\n\n##### PRODUCT\n- `POST /api/product/create`: create new product\n- `GET /api/product/:id`: get a product detail with product id\n- `GET /api/product/page=1\u0026limit=3`: get all product detail with page, limit, sort and fields queries.\n- `PUT /api/product/:id`: update a product detail with product id\n- `PUT /api/product/upload/:id`: upload a product images with product id\n- `DELETE /api/product/delete/:id`: delete a product detail with product id\n- `DELETE /api/product/image`: delete a product image\n\n\u003chr\u003e\n\n##### CATEGORY\n- `POST /api/category`: create new category\n- `GET /api/category/:id`: get a catagory detail with category id\n- `GET /api/category`: get all categories detail.\n- `PUT /api/category/:id`: update a category detail with category id\n- `DELETE /api/category/:id`: delete a category detail with category id\n\n\u003chr\u003e\n\n##### BLOG\n- `POST /api/blog`: create new blog\n- `GET /api/blog/:id`: get a blog detail with blog id\n- `GET /api/blog`: get all blogs detail.\n- `PUT /api/blog/update/:id`: update a blog detail with blog id\n- `PUT /api/blog/like`: toggle like of a blog\n- `PUT /api/blog/dislike`: toogle dislike of a blog\n- `PUT /api/blog/upload/:id`: upload images of a blog with blog id\n- `DELETE /api/blog/delete/:id`: delete a blog detail with blog id\n- `DELETE /api/blog/image`: delete a image of the blog\n\n\u003chr\u003e\n\n##### BLOG CATEGORY\n- `POST /api/blog-category`: create new blog category\n- `GET /api/blog-category/:id`: get a blog category detail with blog category id\n- `GET /api/blog-category`: get all blog categories detail.\n- `PUT /api/blog-category/:id`: update a blog category detail with blog category id\n- `DELETE /api/blog-category/:id`: delete a blog category detail with blog category id\n\n\u003chr\u003e\n\n##### BRAND\n- `POST /api/brand`: create new brand\n- `GET /api/brand/:id`: get a brand detail with brand id\n- `GET /api/brand`: get all brands detail.\n- `PUT /api/brand/:id`: update a brand detail with brand id\n- `DELETE /api/brand/:id`: delete a brand detail with brand id\n\n\n\u003chr\u003e\n\n##### ENQUIRY\n- `POST /api/enquiry`: create new enquiry\n- `GET /api/enquiry/:id`: get a enquiry detail with enquiry id\n- `GET /api/enquiry`: get all enquiries detail.\n- `PUT /api/enquiry/:id`: update a enquiry detail with enquiry id\n- `DELETE /api/enquiry/:id`: delete a enquiry detail with enquiry id\n\n\u003chr\u003e\n\n##### COLOR\n- `POST /api/color`: create new color\n- `GET /api/color/:id`: get a color detail with color id\n- `GET /api/color`: get all colors detail.\n- `PUT /api/color/:id`: update a color detail with color id\n- `DELETE /api/color/:id`: delete a color detail with color id\n\n\u003chr\u003e\n\n##### COUPON\n- `POST /api/coupon`: create new coupon\n- `GET /api/coupon/:id`: get a coupon detail with coupon id\n- `GET /api/coupon`: get all coupons detail.\n- `PUT /api/coupon/:id`: update a coupon detail with coupon id\n- `DELETE /api/coupon/:id`: delete a coupon detail with coupon id\n\n## Contributing\nJoin us in building! Fork our repository, make changes, and submit pull requests. We value community contributions and appreciate your help in improving our project.\n\n## Contact\nIf you have any questions or suggestions regarding this project, feel free to contact us at [abhijeetthakur7080@gmail.com](mailto:abhijeetthakur7080@gmail.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhithakur7080%2Fecommerce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhithakur7080%2Fecommerce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhithakur7080%2Fecommerce/lists"}