From 592d39d34f117774f1cd8b4aaabe90807dcd91d4 Mon Sep 17 00:00:00 2001 From: yikth Date: Mon, 14 Sep 2020 16:38:24 +0800 Subject: [PATCH] update README.md --- README.md | 51 +++++--------------------------------------------- preinstall.md | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 46 deletions(-) create mode 100644 preinstall.md diff --git a/README.md b/README.md index ebb7164..bf6c038 100644 --- a/README.md +++ b/README.md @@ -4,54 +4,13 @@ ### Prerequisite -* Run cmd in administrator mode -* npm - node package manager -* Install `React` for frontend -``` -$ npm install -g create-react-app -``` -* Install `express` for backend -``` -$ npm install -g express-generator -``` -* Install `cors` ??for backend -``` -$ npm install -g save cors -``` - - -## Prepare Client (Frontend) - -* run npx (node package execute) from command line -``` -$ npx create-react-app frontend -``` -* navigate to `frontend` folder. start -``` -$ cd frontend -$ npm start -``` - -## Prepare Server (Backend) - -* run from command line -``` -$ express --view=pug backend -$ cd backend - -// optional : something global install not working -$ npm install cors - -// install dependencies defined in package.json -$ npm install -``` -* navigate to `backend` folder. start -``` -$ cd backend -$ npm start -``` +* [Installation](preinstall.md) ### Example 1. [NUSMoney](nusmoney.md) frontend 2. [Fullstack](fullstack.md) process + +### Fullstack Exercise Project +* nusmoney_backend +* nusmoney_client \ No newline at end of file diff --git a/preinstall.md b/preinstall.md new file mode 100644 index 0000000..c86c39f --- /dev/null +++ b/preinstall.md @@ -0,0 +1,52 @@ +# Frontend - Backend + +## Server Client Project + +### Prerequisite + +* Run cmd in administrator mode +* npm - node package manager +* Install `React` for frontend +``` +$ npm install -g create-react-app +``` +* Install `express` for backend +``` +$ npm install -g express-generator +``` +* Install `cors` ??for backend +``` +$ npm install -g save cors +``` + + +## Prepare Client (Frontend) + +* run npx (node package execute) from command line +``` +$ npx create-react-app frontend +``` +* navigate to `frontend` folder. start +``` +$ cd frontend +$ npm start +``` + +## Prepare Server (Backend) + +* run from command line +``` +$ express --view=pug backend +$ cd backend + +// optional : something global install not working +$ npm install cors + +// install dependencies defined in package.json +$ npm install +``` +* navigate to `backend` folder. start +``` +$ cd backend +$ npm start +```