Express Backend API With Prisma and TypeScript
Younesse ElKars - LinkedIn
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
git clone https://github.com/Unesdevdev/express-prisma-ts.git
Set environment variables:
Contributions are welcome! Feel free to submit issues, feature requests, or pull requests to enhance the functionality or fix any issues.