Article From:https://www.cnblogs.com/zhoudawei/p/9063623.html

1. Environmental preparation

Use react official recommended scaffold create-react-app

1、Install nodejs

 

2、npm install -g create-react-app  //Global installation of scaffolding

 

3、create-react-app demo  //Create a react project

cd demo

npm start

 

2、How to use create-react-app

npm install redux –save Install third party library Redux

npm run eject Pop-up configuration file, you can customize the configuration webpack

Expand the script field in package.json and extend the NPM run command.

 

3、npm install express –save Install Express

 

4、Monitor routing and corresponding content, restart automatically using nodemon.

npm install -g nodemon

nodemon server.js

 

5、Non relational database

Download and install mongodb on the official website https://www.mongodb.com/

npm install mongoose –saveInstall Mongoose

 

brew install mongodb

Link of this Article: React preparation work

Leave a Reply

Your email address will not be published. Required fields are marked *