Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 661 Bytes

README.md

File metadata and controls

38 lines (25 loc) · 661 Bytes

currency-trader-api

API for Currency Trader Web App

Prerequisites

php >= 7.2
mysql

Installing


1. create mysql database currency_trader_api
2. update app/config.php with database credentials
3. import database dump from currency-trader-api-dump.sql
4. open terminal on MAC or Linux, or cmd on Windows
5. run composer install (install composer if it is not installed!)
6. navigate to public folder
7. run php -S localhost:8888

Notes

Discount for EUR transactions and admin email are configurable in app/config.php 

Router

Router class is inspired by https://github.com/afgprogrammer/PHP-MVC-REST-API