Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.77 KB

README.md

File metadata and controls

39 lines (25 loc) · 1.77 KB

Laravel Logo

Build Status Total Downloads Latest Stable Version License

Currency Exchange Rate Api

- 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

Running the application

- 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