-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,28 +14,32 @@ An educational web app for training program tracing skills. | |
git clone [email protected]:exKAZUu-Research/trace-dojo.git | ||
``` | ||
|
||
1. yarn | ||
1. Install dependencies | ||
|
||
``` | ||
yarn install | ||
``` | ||
|
||
1. Create `.env` | ||
1. Reset local database by applying migration files and adding initial records | ||
|
||
``` | ||
cp .env.development .env | ||
yarn db-reset | ||
``` | ||
|
||
1. Sync database schema | ||
### Start Development | ||
|
||
1. Start Next server | ||
|
||
``` | ||
npx prisma migrate dev | ||
yarn start | ||
``` | ||
|
||
### Start Development | ||
### Change Database Schema | ||
|
||
1. Start Next server | ||
1. Change `prisma/schema.prisma` | ||
|
||
1. Create migration files on the basis of `prisma/schema.prisma` | ||
|
||
``` | ||
yarn start | ||
yarn db-migrate-create | ||
``` |