Yet another javascript assignments. There are a lot of interactive javascript resources for beginners, but most of them are online and do not cover the modern programming workflow. There are some excellent training resources on github (https://github.com/rmurphey/js-assessment, https://github.com/mrdavidlaing/javascript-koans, https://github.com/vasanthk/js-bits etc) but they are not exactly simulate the everyday programming process. So the motivation of this project is to show TDD process in the wild to the beginners. Assingment tests are implemented in various ways to feel a difference and gain the experience what manner is good, what is bad and what is ugly.
Another idea is to prepare assignment to cover all standard javascript functions, to drilling and mastering skills. Some tasks are practical, but some tasks are rather synthetic.
And the last idea is to inure trainees to work using unit test and feel uncomfortable when programming without tests.
To start javascript assignments please follow the next steps:
- Fork this repo
- Setup travis-ci to test the commits
- Setup the work environment
- Implement assignments using TDD fashion
- How to debug tasks
- Click the Fork button at the top-right corner of this page and the repository will be copied to your own account.
- Run
git clone https://github.com/<your-account>/js-assignments.git
from command line to download the repo.
- Open https://travis-ci.org/ and sign in with your github account.
- Activate your forked repo js-assignments.
- Edit local README.md file and update all links (just replace all occurrences of
'rolling-scopes-school'
with your account name). - Commit and push updated README.md to github:
git add README.md
git commit -m "Update the links"
git push origin master
- Open https://github.com/rolling-scopes-school/js-assignments and test the build icon. Now it will run all tests and update status once you push changes to github. Keep this icon green!
- Download and install the latest Nodejs.
- Run
npm install
from you repository folder to download the required modules. All dependent modules will be located in the node_modules folder. - Open your favorite editor and complete tasks.
- Open your terminal and use
npm test
command to run all tests. You can run single file by passing it as argumentnpm test ./test/01-strings-tests.js
. - The local repo folder has the following structure: