- Run
composer updateto download project packages - Create
.envfile - Add your exchangeratesapi key in the .env as
EXCHANGE_RATES_API_KEY=$keyfor it source to work (not necessary) - Run
php -S localhost:8000 -t publicto run backend server - Go to
http://localhost:8000/cconverterorhttp://localhost:8000/cconverter/$date/$baseCurrencyto see the result
- Run
npm ito download project packages - Run
npm run devto run frontend server - Go to
http://localhost:3000/to see the result
- You can add another exchange rates soures in the
$requestSourcesvariable in theExchangeRates.phpfile and use custom pattern forjson,xmlorhtmldata types. If you want to add another type then create new function asgetData$type