21 February 2020

Create React project using command prompt in windows

  • Install NodeJS from NodeJS website (https://nodejs.org/en/)
  • Next open Command prompt and type below command (as below image) [Note: -g: global]

    • npm install create-react-app -g


  • Next navigate to folder where you want to create react project. like below image


  • Create New React project using below command( as below image)
    • create-react-app reactapp1
  • It will take some time to create react project
  • After completion of creation it will show like below 

  • Next redirect into project folder using below command 
    • cd reactapp1
  • Next start react app using below command (as below image)
    • npm start
  • To stop react project just press ctrl+C in command prompt. Then it will ask (Terminate batch job(Y/N)? then press Y. 
  • then it will stop running react project. as below image

No comments:

Post a Comment