{"id":23146846,"url":"https://github.com/gichbuoy/e-commerce-backend-api","last_synced_at":"2026-04-29T23:31:34.833Z","repository":{"id":219338374,"uuid":"747225123","full_name":"Gichbuoy/E-Commerce-Backend-API","owner":"Gichbuoy","description":"E-Commerce App with REST API | Node | MongoDB | Advanced Authentication","archived":false,"fork":false,"pushed_at":"2024-03-06T22:02:28.000Z","size":1724,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-05T00:14:38.171Z","etag":null,"topics":["api","ecommerce-api","express","javascript","mvc-architecture","nodejs"],"latest_commit_sha":null,"homepage":"","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/Gichbuoy.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":"2024-01-23T14:15:55.000Z","updated_at":"2024-03-06T20:36:03.000Z","dependencies_parsed_at":"2024-12-17T16:39:51.529Z","dependency_job_id":"783f5eee-3fcc-4df8-b93a-6e5e8e18d62e","html_url":"https://github.com/Gichbuoy/E-Commerce-Backend-API","commit_stats":null,"previous_names":["gichbuoy/e-commerce-backend-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Gichbuoy/E-Commerce-Backend-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gichbuoy%2FE-Commerce-Backend-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gichbuoy%2FE-Commerce-Backend-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gichbuoy%2FE-Commerce-Backend-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gichbuoy%2FE-Commerce-Backend-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gichbuoy","download_url":"https://codeload.github.com/Gichbuoy/E-Commerce-Backend-API/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gichbuoy%2FE-Commerce-Backend-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32448355,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"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":["api","ecommerce-api","express","javascript","mvc-architecture","nodejs"],"created_at":"2024-12-17T16:38:56.861Z","updated_at":"2026-04-29T23:31:34.819Z","avatar_url":"https://github.com/Gichbuoy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## E-Commerce Backend API\n\n- This is a backend API for an E-Commerce platform built using Node.js. It provides various endpoints for managing products, orders, users, and authentication.\n\n\n## Features\n\n- **Product Management**: CRUD operations for managing products.\n- **Order Management**: Create, read, update, and delete orders.\n- **User Management**: Register, login, and manage user accounts.\n- **Authentication**: JWT-based authentication for securing API endpoints.\n- **Validation**: Input validation and error handling.\n- **Authorization**: Role-based access control for restricting endpoints based on user roles.\n- **Database**: Integration with MongoDB for data storage.\n\n## Technologies Used\n\n- Node.js\n- Express.js\n- MongoDB\n- Mongoose\n- JSON Web Tokens (JWT) for authentication\n- bcrypt for password hashing\n- Helmet for security headers\n\n\n## Installation\n\n1. Clone the repository:\n```\ngit clone https://github.com/Gichbuoy/E-Commerce-Backend-API.git\n```\n\n2. Navigate to the project directory:\n```\ncd E-Commerce-Backend-API\n```\n\n3. Install dependencies\n```\nnpm install\n```\n\n\n4. Set up environment variables by creating a `.env` file and adding the following variables:\n\n```\nPORT=3000\nMONGOCOMPASS=\u003cyour-mongodb-uri\u003e\nJWT_SECRET=\u003cyour-jwt-secret\u003e\n```\n\n5. Start the server\n\n```\nnpm start\n```\n\n\n\n## Usage\n\nOnce the server is running, you can access the API endpoints using tools like [Postman](https://learning.postman.com/docs/introduction/overview/) or [Insomnia](https://docs.insomnia.rest/) or directly from the [Frontend application](https://github.com/Gichbuoy/E-commerce-website).\n\n\n## Screenshots\n\n`Connection to mongoDB`\n\n![Screenshot1](./Screenshots/Screenshot%20(130).png)\n\n\n`User Login`\n\n![Screenshot1](./Screenshots/Screenshot%20(131).png)\n\n\n`Registering new User`\n\n![Screenshot1](./Screenshots/Screenshot%20(133).png)\n\n\n`Blocking a User`\n\n![Screenshot1](./Screenshots/Screenshot%20(134).png)\n\n\n`Refresh Token for Authentication`\n\n![Screenshot1](./Screenshots/Screenshot%20(140).png)\n\n\n`Create new Product`\n\n![Screenshot1](./Screenshots/Screenshot%20(141).png)\n\n\n`Declare the data schema for MongoDB Model`\n\n![Screenshot1](./Screenshots/Screenshot%20(142).png)\n\n\n`Products fetched from mongoDB Compass`\n\n![Screenshot1](./Screenshots/Screenshot%20(143).png)\n\n\n`Get Products by ID`\n\n![Screenshot1](./Screenshots/Screenshot%20(144).png)\n\n\n`Get All Products`\n\n![Screenshot1](./Screenshots/Screenshot%20(145).png)\n\n\n\n\n\n\n\n## API Endpoints\n\nFor detailed information about the available endpoints, refer to the [API Documentation](./API_DOCUMENTATION.md).\n\n## Authentication\n\nAuthentication is required for certain endpoints. To authenticate, include a JWT token in the request headers:\n\n\nTo obtain a JWT token, you must first register as a user and then login using your credentials.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgichbuoy%2Fe-commerce-backend-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgichbuoy%2Fe-commerce-backend-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgichbuoy%2Fe-commerce-backend-api/lists"}