정민우

[Edit] Readme 수정

Showing 1 changed file with 11 additions and 2 deletions
...@@ -28,10 +28,13 @@ VPS는 Virtual Private Server의 약자로 가상 사설 서버를 의미합니 ...@@ -28,10 +28,13 @@ VPS는 Virtual Private Server의 약자로 가상 사설 서버를 의미합니
28 28
29 ## 설치 방법 29 ## 설치 방법
30 1. Clone the repository. 30 1. Clone the repository.
31 +
31 ```bash 32 ```bash
32 git clone http://khuhub.khu.ac.kr/2020105655/vps_service 33 git clone http://khuhub.khu.ac.kr/2020105655/vps_service
33 ``` 34 ```
35 +
34 2. Install npm packages frontend, backend. 36 2. Install npm packages frontend, backend.
37 +
35 ```bash 38 ```bash
36 cd frontend 39 cd frontend
37 npm install 40 npm install
...@@ -40,13 +43,17 @@ VPS는 Virtual Private Server의 약자로 가상 사설 서버를 의미합니 ...@@ -40,13 +43,17 @@ VPS는 Virtual Private Server의 약자로 가상 사설 서버를 의미합니
40 npm install 43 npm install
41 cd .. 44 cd ..
42 ``` 45 ```
46 +
43 3. Build frontend react app. 47 3. Build frontend react app.
48 +
44 ```bash 49 ```bash
45 cd frontend 50 cd frontend
46 npm run build 51 npm run build
47 ``` 52 ```
48 -4. Create new file named `.env` at ./backend and enter info as below. 53 +
49 -- .env.example 파일 참조 54 +4. Create new file named `.env` at `./backend` and enter info as below.
55 +- `.env.example` 파일 참조
56 +
50 ``` 57 ```
51 PORT=3000 58 PORT=3000
52 MYSQL_USERNAME=root 59 MYSQL_USERNAME=root
...@@ -59,7 +66,9 @@ VPS는 Virtual Private Server의 약자로 가상 사설 서버를 의미합니 ...@@ -59,7 +66,9 @@ VPS는 Virtual Private Server의 약자로 가상 사설 서버를 의미합니
59 INITIAL_ADMIN_PW= 66 INITIAL_ADMIN_PW=
60 JWT_KEY= 67 JWT_KEY=
61 ``` 68 ```
69 +
62 5. Edit nginx config file. 70 5. Edit nginx config file.
71 +
63 ``` 72 ```
64 server { 73 server {
65 server_name {YOUR URL}; 74 server_name {YOUR URL};
......