demo project that simply fetches two currency exchange providers and display that info on web page. I've picked Laravel PHP framework for backend and Twitter Bootstrap for frontend
- All currency exchange providers implementing ExchangeRateProvider interface
- Implemented CBRFExchangeRatesProvider of Central Bank of Russia
- Implemented YahooFinanceExchangeRatesProvider of Yahoo Finance
- Currency rates fetched from server via AJAX calls with autoupdate each 60 seconds
- UI logic was built using jQuery
- All assets (css and js) are built using Gulp
- Each 5 minutes there is task running on server which fetches new data from above providers and saves it in mysql db
- Also implemented WebSocket server on top of Ratchet that simply resends message to all connected clients.
- Server notifies clients via WebSocketClient which is written on top of Pawl
You can see live demo here