/js-challenges-repo

Javascript Challenges from Nology Course

Primary LanguageJavaScript

_nology JS challenges

This is the repository for _nology JavaScript challenges.

Getting started

Create a Fork

Students should complete the challenges in their own forked version of the challenges repository.

  1. To fork this repository click the fork button in the top right of the repository page on github.

  2. If asked, select your own github account as the place to host the forked version.

Completing a challenge

We follow github flow for each challenge. This means creating a new branch, completing the challenge and submitting a pull request.

  1. Create a branch from master. The branch name should be that of the challenge being done, e.g. js1
git checkout -b <challenge-name>
  1. Complete the challenge by writing your code in the challenge.js file.
  2. Commit your work as you complete the challenge and push up the branch to github.
  3. When ready, create a pull request and assign a trainer as a reviwer.
  4. If approved you can close the pull request and merge the code. If there are comments then continue commiting your work on the existing branch and push to github, this will appear in the pull request.

Updating your Fork

You will need to do this if we update the main challenges repo and want you to have the changes in your forked repository.

  1. Navigate into you repository folder in your machines command line

  2. Run the following command

git pull https://github.com/nology-tech/js-challenges.git master

Installation

yarn install

Running tests

All tests

yarn run test

Individual tests

You can run the tests individually. Do this by specifying the folder as an argument, example below.

yarn run test js1

Solution files

Example solution files are included for each challenge

Run solution file

yarn run test-solution