In this short tutorial I will try to describe how to setup and use JS-Assessment on Windows 7. I felt that the documentation on how to install/setup and use JS-Assessment is lacking. At the moment the GIT Hub page of JS-Assessment contains a very brief and unfinished explanation which might be difficult for some people to grasp. So lets begin.
- Download the whole repository of JS-Assessment from GIT Hub. For Windows you want to get the .zip archive.
- Put is somewhere convenient, like C:\Projects\jsassessment and unpack.
- Download node.js for windows. At the moment of this writing the stable version of node.js is 0.8.2.
- Install node.js
- Now open the node.js command prompt from Start > Node.js (x86) > Node.js command prompt.
- You have to navigate to the root folder of unpacked JS-Assessment. You can do this by typing
(*note that if your path to root folder of js-assessment is different you will have to adjust your command)
- Now that you have navigated to the root folder of JS-Assessment with your node.js command prompt you can install it.
- Simply run these two commands: npm install , node bin/serve
- Command prompt should have printed this afterwards: Serving at http://localhost:4444
- Now open your web browser and go to http://localhost:4444
- You should see a list of failed tests. Pat yourself on the back – you have finished setting up JS-Assessment.
- Now to start working on your JS skills you have to go to C:\Projects\jsassessment\rmurphey-js-assessment-bdabaff\app\arrays.js. because currently it is the first test that you see on the page.
- Inside the indexOf function, on line 6 write this: return arr.indexOf(item); and save the arrays.js file.
- Open http://localhost:4444 in your browser and hit refresh.
- Congrats, you just completed the first task. *You should see a green check mark near the “you should be able to determine the location of an item in an array” task.
Thanks for reading, I hope you enjoy JS-Assessment as much as I did.