{"id":15155552,"url":"https://github.com/jefrey13/mongodb_express_rest_api","last_synced_at":"2026-01-04T05:47:25.683Z","repository":{"id":254000138,"uuid":"844738007","full_name":"Jefrey13/mongodb_express_rest_api","owner":"Jefrey13","description":"RESTful API built with Node.js, Express, and MongoDB to manage a basic e-commerce platform. It supports user authentication, product management, orders, reviews, categories, and more. Includes JWT for security, email notifications via SendGrid, and full API documentation with Swagger.","archived":false,"fork":false,"pushed_at":"2024-09-16T19:49:05.000Z","size":12667,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T01:07:05.931Z","etag":null,"topics":["api-rest","claudinary","express-js","jwt-authentication","mongodb","sendgrid-mail"],"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/Jefrey13.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-08-19T21:51:31.000Z","updated_at":"2024-12-29T20:57:29.000Z","dependencies_parsed_at":"2024-08-20T20:55:24.318Z","dependency_job_id":"4b2837ba-2d99-4cbf-b273-e8273f4f5bdc","html_url":"https://github.com/Jefrey13/mongodb_express_rest_api","commit_stats":null,"previous_names":["jefrey13/mongodb_express_rest_api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jefrey13%2Fmongodb_express_rest_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jefrey13%2Fmongodb_express_rest_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jefrey13%2Fmongodb_express_rest_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jefrey13%2Fmongodb_express_rest_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jefrey13","download_url":"https://codeload.github.com/Jefrey13/mongodb_express_rest_api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237964447,"owners_count":19394397,"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-rest","claudinary","express-js","jwt-authentication","mongodb","sendgrid-mail"],"created_at":"2024-09-26T18:23:33.779Z","updated_at":"2025-10-24T12:30:40.589Z","avatar_url":"https://github.com/Jefrey13.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DigitalMarket API\n\n**DigitalMarket API** is a RESTful API built with Node.js, Express, and MongoDB, providing a solution for managing a basic e-commerce platform. The API offers features for managing users, products, orders, reviews, categories, brands, warehouses, suppliers, and shipments.\n\n## Key Features\n\n- **Authentication and Authorization**: Uses JWT for secure authentication and role-based access control (administrator and standard user).\n- **Full Product Management**: Supports creating, reading, updating, and deleting products, including inventory management, pricing, and categories.\n- **Order and Shipment Management**: Facilitates creating and updating orders, along with tracking and managing shipments.\n- **Product Reviews**: Users can leave reviews and ratings for products.\n- **Supplier and Warehouse Management**: Manages suppliers and warehouses to maintain inventory control.\n- **Email Notifications**: Automatically sends email notifications via SendGrid for order confirmations, shipping updates, and more.\n- **Swagger Documentation**: Provides complete API documentation for easy integration with other applications.\n\n## Requirements\n\n- Node.js (v14+)\n- MongoDB (local or Atlas)\n- SendGrid account for sending email notifications\n\n## General Structure\n\n- **Authentication**: The API allows user registration and login, using JSON Web Tokens (JWT) to handle sessions and access permissions.\n- **Products**: Implements CRUD (Create, Read, Update, Delete) operations for products, categories, and brands.\n- **Users**: Manages user profiles with defined roles to control access to different functionalities.\n- **Orders**: Users can create and manage orders, while administrators can monitor the status of these orders.\n- **Shipments**: Provides functionality to manage the details and status of shipments linked to orders.\n- **Reviews**: Authenticated users can leave comments and ratings for purchased products.\n- **Warehouses and Suppliers**: The API manages warehouses and suppliers, allowing easy inventory updates and control.\n- **Security and Rate Limiting**: The API includes protection against common attacks such as code injection and brute force, with request rate-limiting mechanisms.\n\n## Documentation\n\nThe API is documented using **Swagger**, allowing users to explore all available endpoints, along with parameters, responses, and methods. You can access the interactive documentation once the API is running at `/api-docs`.\n\n## Email Notifications\n\nThe API uses **SendGrid** to send transactional email notifications such as registration confirmations, order updates, and other user messages.\n\n## Best Practices Implemented\n\n- **Data Protection**: Input sanitization and protection against XSS and SQL Injection attacks.\n- **Request Rate Limiting**: Limits requests per IP to prevent abuse.\n- **Secure File Uploads**: Uploaded images (e.g., product photos) are securely processed and stored using Cloudinary.\n- **Error Handling**: Centralized error handling to provide consistent responses for server errors or invalid requests.\n\n## Deployment\n\nThe project can be easily deployed to platforms like **Heroku** or **Vercel**, using MongoDB Atlas for the database and SendGrid for email services.\n\n## Contribution\n\nThis project is open to contributions. You can fork the repository, work on improvements, and submit a Pull Request for review.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjefrey13%2Fmongodb_express_rest_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjefrey13%2Fmongodb_express_rest_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjefrey13%2Fmongodb_express_rest_api/lists"}