A demo for something cool.
- handle invalid input on server side
- sync all clients in realtime
- no concern for server-side rendering
- no concern for the top 20 sorting performance
- only sort topics by votes, no concern for the stability
- no concern for code optimization, e.g. minification
- use http
- e2e test
- lint
- no concern for CI
- management by yarn scripts
- Express + React + Redux + Cycle.js
- e2e test by testcafe
All routes are in /server/index.js
.
The entrypoint of the React app is in /client/index.js
.
The API requests related codes are in /client/cycles.js
yarn install
yarn run start
yarn run build
Build the client first and start the server. Then
yarn run test
or run the test in an opened Chrome to see it in action
yarn run test:open