Front-End environment configuration
Project Introduction article: Front-end based on react, backend based on. NET core2.0 Development Road (1) Introduction
1.VSCode Installation
: Https://code.visualstudio.com/Download
2.node Downloads
: https://nodejs.org/en/
V8.9.1 version Download
3.CNPM Installation
After installing node, NPM is installed by default, for some reason, NPM downloads the package is too slow, so you need to install CNPM
Installation commands
NPM install-g cnpm--registry=https://registry.npm.taobao.org
4. Install git
: https://git-scm.com/
AC Group: 17078075
Pull substitution Code
Create a new folder, right-click:
Input:
git clone https://gitee.com/teambp/scaffoldclient.git
This is the way to succeed!
Initialize Project
Vscode Opening a project
ctrl+~
Evoke [terminal]
Input:
CNPM I
CNPM I--save-dev
Initialize the style file:
Static
Open IIS, bind to
Port write: 7777, can also be configured on its own,
When you are done with IIS, enter:
NPM Run Start
After about 20 seconds:
Enter Address:
http://localhost:8080
See the login page, the front end is configured
The backend is more simple, the specific address to see: https://gitee.com/teambp/ScaffoldServer
After the backend is started, enter Admin,admin log in, and then find the role management, assign the other menu permissions is OK
Front-end based on react, back-end development path based on. NET core2.0 (2) Development environment configuration, considerations, backend data initialization