A lite version of Reddit that:
- Shows a subreddit's list of posts
- Has posts displayed 25 at a time
- Has posts that include:
- Title
- Link to the post/site
- Thumbnail (if it exists)
- Author
- Time submitted
- Link to official reddit comments
- Refreshes/refetches posts every minute without changing scroll position
Desktop demo:
Mobile demo:
Run locally
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
# distribution files are in /dist folder
npm run build
# run tests
npm test
Other
Mocking the official reddit color scheme for fun (link is mouse-hovered):