Skip to content

YounesseElkars/Express-Prisma-TypeScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

71 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Express Backend API With Prisma and TypeScript

Author:

Younesse ElKars - LinkedIn

Description:

An Express-based RESTful API with TypeScript and Prisma , managing both authentication and CRUD operations.

Features

  • 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

Icoming Features

  • API Documentation Using Swagger

  • Sanitize queries against SQL Injection and XSS

  • Middlewrae logger

  • Testing

Getting Started

Clone the repo:

git clone https://github.com/Unesdevdev/express-prisma-ts.git

Install dependencies:

npm install

Set environment variables:

cp .env.example .env

Running Locally

npm run dev

Running in Production

npm run start

Contributions

Contributions are welcome! Feel free to submit issues, feature requests, or pull requests to enhance the functionality or fix any issues.

About

๐ŸŒ Express RESTful API with TypeScript and Prisma , managing both authentication and CRUD operations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •