Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    Setting up the project locally


    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.



    Become a Member to view code

    You must be a Pro 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
    orLog In




    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.

    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.

    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.

    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.

    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.