https://github.com/md-rejoyan-islam/api-with-typescript-prisma-and-postgresql
API create using TypeScript & Prisma . For database use Postgresql.
https://github.com/md-rejoyan-islam/api-with-typescript-prisma-and-postgresql
express javascript postgresql
Last synced: 9 months ago
JSON representation
API create using TypeScript & Prisma . For database use Postgresql.
- Host: GitHub
- URL: https://github.com/md-rejoyan-islam/api-with-typescript-prisma-and-postgresql
- Owner: md-rejoyan-islam
- Created: 2023-10-28T17:51:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-29T06:11:52.000Z (over 2 years ago)
- Last Synced: 2024-12-04T21:19:15.196Z (over 1 year ago)
- Topics: express, javascript, postgresql
- Language: TypeScript
- Homepage:
- Size: 141 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# API create using TypeScript & Prisma
## Use NPM Packages
- Express
- TypeScript
- Ts-node
- Prisma
- Cors
- Dotenv
- Cookie-parser
- Express-async-handler
- Express-validator
- jsonwebtoken
- Bcryptjs
- morgan -D
- nodemon -D
## Routes
#### Post
- GET : /posts
- POST : /posts
- GET : /posts/userId=id
- GET : /posts/:id
- PUT : /posts/:id
- DELETE : /posts/:id
- POST : /posts/bulk
- DELETE : /posts/bulk
- GET : /posts/:id/user
- GET : /posts/:id/comments
#### User
- GET : /users
- POST : /users
- GET : /users/:id
- PUT : /users/:id
- DELETE : /users/:id
- POST : /users/bulk
- DELETE : /users/bulk
##### Comments
- GET : /comments
- POST : /comments
- GET : /comments/:id
- PUT : /comments/:id
- DELETE : /comments/:id
- POST : /comments/bulk
- DELETE : /comments/bulk
#### Postman testing URL
#### Live Preview Link