Install NodeJS and NPM:
Go to
https://nodejs.org/en/
Download latest version of NodeJS LTS with Administrator privileges.
Download latest version of NodeJS LTS with Administrator privileges.
Install Visual Studio
Code:
Go to
https://code.visualstudio.com/
Downloaded latest version.
Run VS Code.
Downloaded latest version.
Run VS Code.
It should recommend to
install Git. Follow instructions to install Git for Windows.
After installation,
should be able to get version of git.
Open terminal and type:
COPY
git --version
Followed by:
COPY
node --version
Followed by:
COPY
npm --version
Each should give
versions installed on Windows.
Install React from
terminal:
COPY
npm install -g create-react-app
If successful, you
should be able to get version:
COPY
create-react-app --version
Create react project:
COPY
create-react-app <projectname>
Run project:
COPY
cd <projectname>
npm start
Expected output in
terminal (and should auto open browser to port 3000):
COPY
Compiled successfully!
You can now view <project_name> in the browser.
Local: http://localhost:3000/
On Your Network: http://<your_ip_address>:3000/
Note that the development build is not optimized.
To create a production build, use yarn build.
No comments :
Post a Comment