The following exercises are designed to teach you how to work with creating Read–eval–print loop (REPL) and Command Line Interface (CLI) applications. Each step of this adventure you will be presented with a series of problems to solve. Your objective is to implement the functionality defined in the tests. You finish a step when all the tests pass. Each exercise can be solved independently, however, each step increases in difficulty as it introduces more complexity and different concepts.
Suggested order of exercies:
- kitchen_calculator
- waiting_room_manager
- ticket_dispenser
Fork and clone the cli-exercises repository.
$ cd ~/your/project/dir
$ git clone git@github.com:USERNAME/cli-exercises.git
$ cd classes-exercisesCreate a branch so that you're not changing master:
$ git checkout -b make-tests-passorigin is your fork of the project. We'll need to connect to the upstream repository.
To do this, add a new remote named upstream that points to the JumpstartLab:
$ git remote add upstream git@github.com:JumpstartLab/classes-exercises.gitThen pull down the updated version of upstream:
$ git fetch upstreamAnd now make sure you're on master:
$ git checkout master
$ git branch # should say *masterMake master point to the exact commit that upstream/master is pointing at:
$ git reset --hard upstream/master