DEV Community

equuscaballus
equuscaballus

Posted on

How Can I Download a React Project from Github and Run in My PC

Hello Everyone
I am new to Javascript and React. I was wondering if there is any way I can download some open source projects written in React JS from Github and run it in my computer with the help of Visual Studio code.I was thinking to study the source code so that I can learn React.
I found some projects in Github but not sure how I can download the source code and run it .
Is there any step by step guideline? Can anyone help?

Top comments (7)

Collapse
 
swagwik profile image
Sattwik Sahu
  1. Open your terminal and then type

    $ git clone {the url to the GitHub repo}

    This clones the repo

  2. cd into the new folder and type

    $ npm install

    This installs the required dependencies

  3. To run the React project.
    $ npm start

You are done! Now you can start editing the React project in the new folder that's created.

Collapse
 
equuscaballus profile image
equuscaballus

That worked !! Thanks a lot :)

Collapse
 
devtrilok profile image
Triloknath Jagannath Nalawade

Thanks ... I forget npm install always :)

Collapse
 
madhavanananthan profile image
Madhavan Ananthan

It really helps thanks

Collapse
 
roshanbhatt profile image
Roshan-Bhatt • Edited

Hello I followed all three steps suggested by Sattwik Sahu but when I run npm start it is showing "Waiting for changes..." from a very long time. So how can I run the newly downloaded code in my system.

Please see attached Image.

Image description

Collapse
 
surajupadhyay profile image
Suraj Upadhyay

Thanks for asking this question man. This helped me 2 years later :)

Collapse
 
subburekhandar profile image
Subramanyam Rekhandar

Thanks a lot