https://github.com/fajarbc/prisma-basic
https://github.com/fajarbc/prisma-basic
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fajarbc/prisma-basic
- Owner: fajarbc
- Created: 2022-08-04T16:04:06.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-04T16:15:00.000Z (almost 4 years ago)
- Last Synced: 2025-03-10T17:29:47.800Z (over 1 year ago)
- Language: Shell
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# prisma-basic
# Project Setup
```
npm install
```
# Project Run
```
npm start
```
# How to init prisma for the first time
```
npx prisma init
```
It will create `/prisma/schema.prisma` and `.env`. Change those two files as needed.
# Pull from existing database
```
npx prisma db pull
```
# generate prisma client
```
npx prisma generate
```
# generate migrate
```
npx prisma migrate
```