C-Store API serves as the backend infrastructure for a convenience store management system, providing endpoints for product management, order processing, user authentication, and inventory control. Built with performance, security, and scalability in mind.
- Runtime Environment: Node.js
- Framework: Express.js
- Database: PostgreSQL with Prisma ORM
- Authentication: JWT-based token authentication
- Containerization: Docker
- Node.js v20+
- PostgreSQL v16+
- Docker (optional for containerized deployment)
Check out this guide
For detailed information about available endpoints and request/response formats, refer to the documentation in the /documents/apis/ directory.
c-store-api/
βββ documents/ # Comprehensive API documentation
β βββ apis/ # Endpoint-specific documentation
β β βββ authentication/ # Auth-related API docs
β β βββ catalogue/ # Product management API docs
β β βββ shipping-method/ # Shipping and delivery API docs
β β βββ user/ # User management API docs
β βββ app-flow/ # Application flow diagrams
β βββ entity-relationship/ # Database ER diagrams
β βββ sequences/ # Sequence diagrams for key processes
β
βββ api-server/ # Server codebase
βββ prisma/ # Database ORM configuration
β βββ schema.prisma # Prisma schema definition
β βββ seed.ts # Database seeding script
β
βββ src/ # Source code
βββ controllers/ # Request handlers and response formatters
βββ helper/ # Helper utilities and common functions
βββ middlewares/ # Express middlewares (auth, validation, etc.)
βββ routes/ # API route definitions
βββ services/ # Business logic implementation
βββ utils/ # Utility functions and helpers
βββ validator.ts # Request validation functions
This project is licensed under the MIT License - see the LICENSE file for details.