From 80f016c4de2c7defb0954815beb88183931628e4 Mon Sep 17 00:00:00 2001 From: publdaze <78250089+publdaze@users.noreply.github.com> Date: Mon, 31 Jul 2023 18:51:42 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20README.md=20=EB=B9=8C=EB=93=9C=20?= =?UTF-8?q?=EB=B0=A9=EB=B2=95=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ee7c967..8d4ddc1 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,20 @@ ## SmartTrashCan 프로젝트 -root path에 `.env` 파일이 필요합니다. +### How to Deploy + +1. root path에 `.env` 파일 추가 ```dotenv # 예시 -MONGO_URL="mongodb://localhost:27017" -``` \ No newline at end of file +MONGODB_URL={{ mongodb://localhost:27017 }} +JWT_SECRET_KEY={{ secretKey }} +``` + +2. 필요한 패키지 설치 +```bash +$ npm install +``` + +3. production 배포 +```bash +$ npm run start:prod +```