Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/esquiafo/prismapostgresnextjs

Postgress Prisma Next API REST
https://github.com/esquiafo/prismapostgresnextjs

api api-rest next nextjs orm orm-framework postgres postgresql prisma prisma-orm react supabase

Last synced: about 1 month ago
JSON representation

Postgress Prisma Next API REST

Awesome Lists containing this project

README

        

# Database: Postgress
# ORM: Prisma
# API: Next.js

1. yarn install
2. yarn build
3. yarn dev
4. yarn prisma studio (to see online database, dont forget to add in URL PATH .env and deploy Postgress in localhost)
5. yarn ts-node prisma.ts (running all the queries in prisma.ts file)

## API PATHS

- ***/api/*** \*get
- ***/api/product*** \* get/post
- ***/api/product/:id*** \*get/delete/put
- ***/api/user*** \* get/post
- ***/api/user/:id*** \*get/delete/put
- ***/api/sell*** \* get/post
- ***/api/sell/:id*** \* get/delete/put

## ENV
DATABASE_URL="postgresql://(USER):(PASSWORD)@(HOSTNAME)(PORT)/(DB)"