Skip to content

Instantly share code, notes, and snippets.

@cjdell
Created June 7, 2017 14:30
Show Gist options
  • Save cjdell/6cce6644f48a31cec458dc4cbc9355ca to your computer and use it in GitHub Desktop.
Save cjdell/6cce6644f48a31cec458dc4cbc9355ca to your computer and use it in GitHub Desktop.
Instructions for Exercism session

Exercism

Environment setup

Install Node.JS (if you haven't already)

See http://exercism.io/languages/javascript/installing

Install Jasmine

npm install -g jasmine

Install the Exercism client

For macOS use HomeBrew:

brew update && brew install exercism

For Windows use Chocolatey:

choco install exercism-io-cli

For Linux follow these instructions

Your first exercise

Use the CLI to get the Hello World exercise:

exercism fetch javascript hello-world

Go to the directory for this exercise, for example:

cd ~/exercism/javascript/hello-world

Attempt to run the test (this will fail):

jasmine hello-world.spec.js

Make the changes needed (in hello-world.js) to make each test pass and repeat.

[Optional] Submit your solution:

Go here to get your API key, and then configure it with:

exercism configure --key=YOUR_EXERCISM_KEY

Once you have completed the tests, submit your solution:

exercism submit hello-world.js

Either, get the next exercise with:

exercism fetch javascript

Or alternatively pick exercise of your choice from here and fetch manually:

exercism fetch javascript [your-chosen-exercise]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment