mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-04 08:58:40 +02:00
👷♂️ Add db seed script (#619)
This commit is contained in:
parent
ed8b1d6765
commit
3d9dd00736
5 changed files with 229 additions and 7 deletions
10
README.md
10
README.md
|
@ -47,12 +47,18 @@ Install dependencies
|
|||
yarn
|
||||
```
|
||||
|
||||
Next, run the following to generate the database client and run migrations to create our schema
|
||||
Next, run the following command:
|
||||
|
||||
```
|
||||
yarn db:generate && yarn db:deploy
|
||||
yarn db:generate && yarn db:reset
|
||||
```
|
||||
|
||||
This will:
|
||||
|
||||
- generate the prisma database client
|
||||
- run migrations to create the database schema
|
||||
- seed the database with some random data
|
||||
|
||||
Start the Next.js server
|
||||
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue