From 61307836e8636910fc35bf38ce240168718cd60a Mon Sep 17 00:00:00 2001 From: Yuki Ito <37338201+ykit00@users.noreply.github.com> Date: Tue, 9 Jan 2024 15:58:51 +0900 Subject: [PATCH] docs: Add Getting Started (#6) Co-authored-by: Sakamoto, Kazunori --- README.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/README.md b/README.md index 3dfa3b20..e41ca742 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,43 @@ [![Test](https://github.com/exKAZUu-Research/trace-dojo/actions/workflows/test.yml/badge.svg)](https://github.com/exKAZUu-Research/trace-dojo/actions/workflows/test.yml) An educational web app for training program tracing skills. + +## Getting Started + +### Installation + +1. Clone the repo + + ``` + git clone git@github.com:exKAZUu-Research/trace-dojo.git + ``` + +1. Install dependencies + + ``` + yarn install + ``` + +1. Reset local database by applying migration files and adding initial records + + ``` + yarn db-reset + ``` + +### Start Development + +1. Start Next server + + ``` + yarn start + ``` + +### Change Database Schema + +1. Change `prisma/schema.prisma` + +1. Create migration files on the basis of `prisma/schema.prisma` + + ``` + yarn db-migrate-create + ```