From 04dba258be1a9198759ec550f64f3ca305a1ada5 Mon Sep 17 00:00:00 2001 From: shaoh4 Date: Mon, 21 Dec 2020 09:14:57 +0800 Subject: [PATCH] add project run description --- client/.env.production | 1 + readme.md | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/client/.env.production b/client/.env.production index e69de29..4f79a0f 100644 --- a/client/.env.production +++ b/client/.env.production @@ -0,0 +1 @@ +GENERATE_SOURCEMAP=false \ No newline at end of file diff --git a/readme.md b/readme.md index f5e2e39..5b4c1c1 100644 --- a/readme.md +++ b/readme.md @@ -1,3 +1,40 @@ +# Backend +## install project dependencies +``` +cd server +npm install +or yarn install +``` +## run project +``` +cd server +npm run dev +or yarn dev +``` +> terminal console http://127.0.0.1:4900/api and Connected to mongodb success, backend run success + + +# Fronend +## install project dependencies +``` +cd client +npm install +or yarn install +``` + +## run project +``` +cd client +npm run start +or yarn start +``` +> terminal console Local: http://localhost:3000 , fronend run success +### Pack Project +``` +cd client +npm run build +or yarn build +``` # API list