This is a short coding challenge aiming to clone a small subset of reddit site and features.
https://reddit-99.herokuapp.com/
It will take a few seconds to load initially, it shuts down then cold start when not used in a while.
- Clone this repo
- Move to the appropriate directory:
cd 99-reddit. - Run
yarnornpm installto install dependencies. - Run
npm startto see the example app athttp://localhost:3000.
- Run
npm run test - Open
coverage/lcov-report/index.htmlin your favorite browser
- Run
npm run lint
- List post page
- Post page
- Sort (hot/new/controversial)
- Infinite scroll
- View switching
- Look alike design
- Up/downvotes
- Isomorphism
- Account handling
- Search
- Subreddit selection
- Drop a
debuggerstatement in the code to debug - Open chrome at url
chrome://inspect - Run
node --inspect-brk ./node_modules/jest-cli/bin/jest.js --runInBand app/components/Post/tests/index.test.js