{"id":18374117,"url":"https://github.com/rubel011/ecommerce-api","last_synced_at":"2026-04-05T23:33:31.482Z","repository":{"id":192520965,"uuid":"686284985","full_name":"Rubel011/Ecommerce-API","owner":"Rubel011","description":"Welcome to the Ecommerce API — a comprehensive backend solution tailored for modern ecommerce platforms. This API provides robust capabilities to manage user authentication, product inventory, and order processing with efficiency and security.","archived":false,"fork":false,"pushed_at":"2024-11-13T11:35:50.000Z","size":88,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T03:02:35.427Z","etag":null,"topics":["bcrypt","express","jsonwebtoken","mern-stack","mern-stack-development","mongodb","mongoose","mvc-architecture","nodejs","object-document-mapper","software-development"],"latest_commit_sha":null,"homepage":"https://ecommerce-api-1.up.railway.app/","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/Rubel011.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,"zenodo":null}},"created_at":"2023-09-02T09:30:51.000Z","updated_at":"2024-11-13T11:35:53.000Z","dependencies_parsed_at":"2024-11-13T06:18:47.729Z","dependency_job_id":"53fcc356-ae8b-42fd-adaf-32b8eac217d8","html_url":"https://github.com/Rubel011/Ecommerce-API","commit_stats":null,"previous_names":["rubel011/ecommerce-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Rubel011/Ecommerce-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rubel011%2FEcommerce-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rubel011%2FEcommerce-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rubel011%2FEcommerce-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rubel011%2FEcommerce-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rubel011","download_url":"https://codeload.github.com/Rubel011/Ecommerce-API/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rubel011%2FEcommerce-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31454198,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"ssl_error","status_checked_at":"2026-04-05T21:22:51.943Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["bcrypt","express","jsonwebtoken","mern-stack","mern-stack-development","mongodb","mongoose","mvc-architecture","nodejs","object-document-mapper","software-development"],"created_at":"2024-11-06T00:13:25.640Z","updated_at":"2026-04-05T23:33:31.454Z","avatar_url":"https://github.com/Rubel011.png","language":"JavaScript","readme":"\u003cdiv align=\"center\"\u003e\n\n# Ecommerce API\n\n\u003c/div\u003e\n\n### Welcome to the Ecommerce API — a comprehensive backend solution tailored for modern ecommerce platforms. This API provides robust capabilities to manage user authentication, product inventory, and order processing with efficiency and security. Key functionalities include secure user registration and authentication with token blacklisting, complete product lifecycle management, and seamless order handling, all designed to enhance the backend efficiency of ecommerce systems.\n\n## API Documentation: for Swagger\n\nYou can explore the API documentation using Swagger UI. Access the documentation by navigating to:\nhttps://ecommerce-api-1.up.railway.app/api-docs\n\n## Functionality\n\nThe API includes the following functionality:\n\n- User Registration\n- User Login and Authentication\n- User Logout with Token Blacklisting\n- Product Management- create , update, delete\n- Order Management- new Order, get Orders\n\n## Backend Deployment\n\nThe backend of this project is deployed and can be accessed via the following link: [Backend Deployment Link](https://ecommerce-api-1.up.railway.app/)\n\n## Backend Routes\n\n- **User Authentication**:\n\n  - `POST /users/register`: Register a new user.\n  - `POST /users/login`: Log in with a registered user.\n  - `GET /users/profile`: Get the user's profile (protected route using JWT).\n  - `POST /users/logout`: Log out the user.\n\n- **Product Management**:\n\n  - `GET /products/category/:categoryId`: Get products by category.\n  - `GET /products/getAll`: Get all products.\n  - `GET /products/:id`: Get a specific product.\n  - `POST /products/create`: Create a new product.\n  - `DELETE /products/:productId`: Delete a product.\n\n- **Order Management**:\n  - `POST /orders/order_place`: Place a new order.\n  - `GET /orders/order_history`: Get order history.\n  - `GET /orders/:id`: Get a specific order.\n\n## Installation\n\nTo get started with the Ecommerce API, follow these steps:\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/Rubel011/Ecommerce-API.git\n\n   ```\n\n2. Install the required npm packages:\n\n   ```\n   cd Ecommerce-API\n   pnpm run install\n   ```\n\n3. Set up environment variables:\n\n   - Create a .env file in the project root and configure the following variables:\n\n   ```\n   PORT=3001\n   mongoUrl=mongodb://localhost/your-database-name\n   JWT_SECRET=your-secret-key\n   saltRounds=15\n   ```\n\n4. Start the server:\n\n   ```\n   pnpm run start\n   ```\n\n5. Access the backend API at http://localhost:PORT.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubel011%2Fecommerce-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubel011%2Fecommerce-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubel011%2Fecommerce-api/lists"}