Skip to content
2018 Coding Challenge: Javascript Skeleton
Branch: master
Clone or download
Pull request Compare This branch is 4 commits ahead of CS-CodingChallenge:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Javascript Skeleton

Welcome to the Credit Suisse Coding Challenge 2018! Below are instructions for getting started on the Challenge.

Competition Rules

Challenge Questions are available on our website at

To get started, first fork this repository in order to obtain your own copy. Please note that per Challenge rules this repository must be visible to us (CS-CodingChallenge).

This can be achieved by either keeping the repository public, or by adding as a viewer to the private repository.

In your repository

You'll find several files in your repository, most of which you shouldn't touch - these are set out below:

  • Do not modify or delete files Procfile and questionController.js.

  • You may add new npm packages. To do this, type npm install --save "package-name" into a command prompt.

  • A guide to adding npm packages can be found on the npm website.

  • To add code to be run, modify the files in the answers directory. These are numbered by question.

Deploying your solution

In order to submit your code to the Automated Evaluator, it first needs to be deployed to Heroku. For this, you'll need to create a Heroku server:

Connecting Heroku to your Git repository

  1. Set up a Heroku account. This is free, and can be set up at
  2. Download the Herou Command Line tools (
  3. In a command prompt, log in to your Heroku account using the command: heroku login
  4. Navigate to your git repository in the command prompt.
  5. Run: heroku create

Deploying to Heroku

  1. If you have added any dependencies to your solution, ensure they are listed in your package.json file. Failure to do so will result in your Heroku server failing to run.
  2. Add files to be deployed to Heroku using git add "file-name"
  3. Commit the files for deployment using git commit -m "Your commit message here"
  4. Deploy to Heroku using git push heroku master (Please note, this doesn't push to your original repository, so remember to push your changes there as well frequently).
  5. Your solution will be deployed to Heroku. You can see the logs to your server using heroku logs --tail

Please note - for your solution to be considered valid, you must grant access to your Heroku server to This can be done on the Heroku website.

Tell us you've deployed

At our website, we have a tab listed Register Heroku. Here, you should tell us your Heroku name, and GitHub repository address. To start the process, you'll need your UserID (provided in your starter email) and the email address you signed up with. Once this is complete, please allow an hour for your score to be updated on the leaderboard. You only need to complete this step once.

You can’t perform that action at this time.