Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/esquiafo/prismapostgresnextjs
- Owner: Esquiafo
- License: mit
- Created: 2023-02-02T00:52:26.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-07T18:52:23.000Z (over 1 year ago)
- Last Synced: 2024-05-31T15:42:27.774Z (7 months ago)
- Topics: api, api-rest, next, nextjs, orm, orm-framework, postgres, postgresql, prisma, prisma-orm, react, supabase
- Language: TypeScript
- Homepage: https://prisma-postgres-nextjs.vercel.app/
- Size: 481 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Database: Postgress
# ORM: Prisma
# API: Next.js1. 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)"