Save 45% for a limited time.

Get access to all courses and lessons on egghead today.

Autoplay

    Setting up the project locally

    Kent C. DoddsKent C. Dodds

    Before you start making your changes, you often need to set up your environment for the changes. This is where the repositories' contributing instructions come in really handy. In this lesson we’ll get our environment set up and ready for changes.

    gitgit
    githubGitHub
    Code

    Code

    Become a Member to view code

    You must be a Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson
    Transcript

    Transcript

    00:00 Before we start making changes to the project, we should probably review the CONTRIBUTING file to check out any setup that needs to happen. We'll go to the CONTRIBUTING.md file, and we'll look at setup instructions.

    00:12 We've already done a couple of these steps. Now it looks like the next step is to create a branch. We'll go ahead and do that, now.

    00:19 We'll type "git checkout" and "new branch." This is to create a new branch. We'll give it the prefix of pr/pad-left. Next it looks like we want to run npm install. We'll run npm install. When that finishes installing, we need to run npm t to run the test and npm run build.

    00:43 If everything works, then we're ready to make our changes. Npm is the package manager for Node projects. As this is distributed on npm as dependencies that are installed from npm, so if you don't have Node or npm installed, you're going to need to install those first before contributing to this project.

    01:01 With those dependencies installed, now we can run npm t && npm run build. This will run the tests. Npm run build. It looks like everything passed just fine. Now we are ready to start making our changes.

    Discuss

    Discuss