An open API service indexing awesome lists of open source software.

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.

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 test with postman

#### Live Preview Link

Live Preview