Synchronization service for currencies
This instruction explains steps for deployment and using this application
Clone code from repository:
git clone https://github.com/computools/currency.git
Run composer:
sudo composer install
Create .env file and configure:
- set database settings
- set APP_AUTH_TOKEN
run migrations:
php artisan migrate
Run command to fill database with currencies or update existing currencies
php artisan currencies:update
Getting currency by id, example:
/api/currency/036
Getting slice of currencies, example:
/api/currencies?take=20&skip=20
Getting history of currency, example:
/api/currencies/history/036
Running tests:
./vendor/bin/phpunit