- Test Driven Development
- SOLID PRINCIPLES
S - Single Responsibility Principle.
O - Open/Closed Principle.
L - Liskov Substitution Principle.
I - Interface Segregation Principle.
D - Dependency Inversion Principle.
- API Integration
- Caching
- Rate limiting
Create an account on https://app.freecurrencyapi.com
- After cloning the project, add the env keys for FREE_CURRENCY_KEY_ID and FREE_CURRENCY_TTL
- Run php artisan test to make sure everything is working as expected
- On your local machine run a HTTP Get Request inside Postman or Insomia http://localhost:8000/api/currency-rates
- To convert a currency use http://localhost:8000/api/currency-conversion?amount=800&from_currency=USD&to_currency=ZAR
- To get supported currencies see https://freecurrencyapi.com/docs/currency-list