Sample Node.js project of currency rates relatively to bitcoin. Project implemented on JavaScript, using the latest ES features and React, dated on the latest commit.
Its development environment based on: Babel, Flow, ESLint.
After project cloning and installing dependencies, you have to run server by:
npm start
.
You can start server manually using next arguments:
- delay – delay before first request
- interval – interval request after fetching currencies data completion
- curr – currencies separated by comma, where first element as a base
node server.js --interval 2000 --delay 1000 --curr GBP,EUR
Application outputs in several modes:
- owner – through console:
- client – application runs http server on 3000 port, so it provides two cases:
http://localhost:3000/watch
– returns a streamhttp://localhost:3000/watch/render
– returns a SSR page based on React