A dollar to bitcoin converter to be used as Kotlin wizeline workshop project.
The master
has the final project running. It is a command line dollar to bitcoin converter. The intention is to follow the steps from 1 up to 9 (each step is git tag
) and complete the challenges described in the TODO's. Each step is described below
The step 1 shows how to configure a Kotlin project using Gradle, the challenges in step are:
- Apply the Kotlin plugin
- Add Kotlin build script dependency
- Add the Kotlin standard library
On step 2 we print our first hello world
In step 3 the first class should be created, and the tests are introduced, from now all steps should have the unit tests passing
Create the first function in a way that makes the tests pass
We see the data class powers in action (see the tests)
It is intended to show how to create class extensions
Here we use the previous classes to fill a function that that converts the dollar to bitcoin
Step 8 is the final TODO step. Here you need to change the main function to use your classes and convert the dollar amount read from standard input to bitcoins
Here you can see all working. No TODO enjoy it