This is the repository for _nology JavaScript challenges.
Students should complete the challenges in their own forked version of the challenges repository.
-
To fork this repository click the fork button in the top right of the repository page on github.
-
If asked, select your own github account as the place to host the forked version.
We follow github flow for each challenge. This means creating a new branch, completing the challenge and submitting a pull request.
- Create a branch from master. The branch name should be that of the challenge being done, e.g. js1
git checkout -b <challenge-name>
- Complete the challenge by writing your code in the challenge.js file.
- Commit your work as you complete the challenge and push up the branch to github.
- When ready, create a pull request and assign a trainer as a reviwer.
- 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.
You will need to do this if we update the main challenges repo and want you to have the changes in your forked repository.
-
Navigate into you repository folder in your machines command line
-
Run the following command
git pull https://github.com/nology-tech/js-challenges.git master
yarn install
yarn run test
You can run the tests individually. Do this by specifying the folder as an argument, example below.
yarn run test js1
Example solution files are included for each challenge
yarn run test-solution