👷‍♂️ Add db seed script (#619)

This commit is contained in:
Luke Vella 2023-03-28 12:29:11 +01:00 committed by GitHub
parent ed8b1d6765
commit 3d9dd00736
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 229 additions and 7 deletions

View file

@ -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
```