HyeonJun Jeon

[Docs] Update set-up procedure

Showing 1 changed file with 28 additions and 13 deletions
......@@ -32,30 +32,45 @@
## Getting Started (Installation)
### Set up
```bash
```sh
git clone http://khuhub.khu.ac.kr/2021105636/Extended-Calendar.git
npm install
npm install -g nodemon
npm install -g pm2
```
Make `.env` in root directory.
```sh
# MySQL
DB_HOST=
DB_USER=
DB_PASSWORD=
DB_DATABASE=
# Express
SERVER_IP=
# React
REACT_APP_IP=
REACT_APP_SERVER_IP= # generally all the same
```
Import `schema.sql` in your DB.
### Run to debug
> Terminal 1 ( Server )
>
> ```
> npm run server
> ```
>
> Terminal 2 ( React )
>
> ```
> npm start
> ```
Terminal 1 ( Server )
```sh
npm run server
```
Terminal 2 ( React )
```sh
npm start
```
port : 3000
<br>
### Run to deploy
```
```sh
npm run build
npm run pm2
```
......