Giter Site home page Giter Site logo

fix-errors's Introduction

Fixing Errors

In this repository you will find javascript files that all have errors. Read this Error Guide and make to sure to make commits after fixing each bug.

Lesson Setup Forking and Cloning

First you will need to fork the repo. This will create a copy of the repository on you github account this allows the repository's owner to keep a clean working code base while you can make changes to the code on your own repo. To fork the repository look for the fork button at the top right, under your profile image. Once you fork the repository to your account you will then need to clone the project into cloud9. Cloning a repository is similiar to forking you will have a remote repository, or online repository on github and a working repository on your cloud9. In order to clone your fix-errors repo click the clone or download button. Then copy the url. Now back in cloud9 in your bash terminal from you challenges directory

    git clone <repo url>

Make sure to replace < repo url> with the url you copied from the repository on github. Angle braces , <> are not to be included in the bash command. Angle braces commonly surround where the command needs information that is specific to you. If stuck further instruction on forking and cloning can be found here

Running the files

Step 1 cd into the projects directory after cloning.

 cd fix-errors
 

Step 2 To run any javascript file the command is:

node <file name>

For example to run lesson 1.

node lesson.js

Once You Fix the Error

Upon fixing the error in the file. You need to commit and push your changes. The proper git proceedure will be

Step 1

Check the status files in red are new or changed, green means those files have been added.

git status

Step 2

Adding files to the staging area to be commited. git add . will add all the files that were listed in red during git status.

git add .

Step 3

Now that we have added files to the staging area we need to commit to that code. It is important in the commit message to leave a short yet detailed message about what you changed or fixed in this commit.

git commit -m "message about what you did here"

Step 4

This will push the commit to our remote github repository, the one we cloned.

git push

Git Cheat Sheet

Tips

See Error Guide

Authors

  • Peter Horton

License

This project is licensed under the MIT License - see the LICENSE.md file for details

fix-errors's People

Contributors

phortonssf avatar guycarney avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.