- Clone this repository.
- Change directory to created
cd project
. - Install composer packages
composer install
. - Install yarn packages
yarn install
. - Copy example
.env
file (cp .env.example .env
). - Generate application key
php artisan key:generate
. - Fill in the required data in the
.env
file (database credentials,CURRENCY_API_KEY
). - Run migration
php artisan migrate
. - Run references table seeders
php artisan db:seed
. - Import currencies exchange rates
php artisan currency:import
. - (Optional) Run users table seeder for testing purposes
php artisan db:seed --class=UsersTableSeeder
. - Start a development server at http://localhost:8000
php artisan serve
.
- PHP >= 7.2.0.
- BCMath PHP Extension.
- Ctype PHP Extension.
- JSON PHP Extension.
- Mbstring PHP Extension.
- OpenSSL PHP Extension.
- PDO PHP Extension.
- Tokenizer PHP Extension.
- XML PHP Extension.
- Database PDO Extension.
- Composer.
CURRENCY_API_KEY
- Open Exchange Rates account App ID, which using to access currency exchange rates API.