An Express-based RESTful API with TypeScript and Prisma , managing both authentication and CRUD operations.
- MVC Pattern
- Prima as ORM
- Seed Script
- Authentication Routes (/Login , /Logout)
- JWT (HTTP-Only)
- Protected Routes
- Validation With Zod as middleware
- Error Handler middleware :
- Prisma Errors
- Zod Errors
- JWT Parsing Errors
- Route Not Found Error
- CRUD Operations ( Author , Books resources)
- Custom Handler for Response
- Custom HTTP Codes enum list
- CORS Middleware with custom config object
-
API Documentation Using Swagger
-
Sanitize queries against SQL Injection and XSS
-
Middlewrae logger
-
Testing
git clone https://github.com/Unesdevdev/express-prisma-ts.git
npm install
cp .env.example .env
npm run dev
npm run start
Contributions are welcome! Feel free to submit issues, feature requests, or pull requests to enhance the functionality or fix any issues.