I made multiple versions for different enviroments:
- Nodejs server (API) - README.md
From the readme-links above, you can find instructions for how to run them locally
The iOS app will be in the AppStore after Apple has reviewed it (it takes usually 1-2 days)
Edit: Apple has approved the app and it can now be downloaded from the App Store: Crypto Time Machine
The nodejs and react versions are running at Heroku
The API can be used as follows:
- Assignment a) -
curl https://vincit-rising-star.herokuapp.com/get/a?from=start_date&to=end_date
- Assignment b) -
curl https://vincit-rising-star.herokuapp.com/get/b?from=start_date&to=end_date
- Assignment c) -
curl https://vincit-rising-star.herokuapp.com/get/c?from=start_date&to=end_date
- Assignment All -
curl https://vincit-rising-star.herokuapp.com/get/all?from=start_date&to=end_date
where
start_date
: start date of the rangeend_date
: end date of the range
the date format can be in a timestamp
(seconds since 1970) or in a date string: yyyy-mm-dd
or yyyy/mm/dd
.
So, for example to get range between 01-12-2021 and 31-12-2021, you can use:
timestamp
:curl "https://vincit-rising-star.herokuapp.com/get/all?from=1638316800&to=1640908800"
yyyy-mm-dd
:curl "https://vincit-rising-star.herokuapp.com/get/all?from=2021-12-01&to=2021-12-31"
yyyy/mm/dd
:curl "https://vincit-rising-star.herokuapp.com/get/all?from=2021/12/01&to=2021/12/31"
You can convert other dates into timestamp in here: https://www.unixtimestamp.com.
You can also give:
coin
: default isbitcoin
vs_currency
: default iseur
The CoinGecko API documentation can be found here: https://www.coingecko.com/en/api/documentation