TypeScript implementation of Hacker News clone originally by tylermcginnis with some useful additions. Live demo
- Nested comments
- Collapsible comment trees
- Infinite scrolling/lazy loading of post lists and comments
- State handover between post lists and individual listings (reduces API requests)
- Other available story type listings
- Links back to original HN submissions
- Added Jest snapshot testing for all of the components
- TypeScript
- React + Hooks
- React-router
- PostCSS
- Jest
- React Testing Library
- Webpack
Available at hn-react-ts.zweisolutions.com
- Run
npm install
in the main directory (package.json should be accurate)- Special Notes:
- Source/Dev: app folder, Production: dist folder
- Run one of the commands from the Scripts section. You'll most likely want
npm run dev
for development andnpm run build
for production.
npm run dev
: Create development build and serve it on dev servernpm run build
: Build application for production (build directory: dist)npm run build-win
: Build application for production in Windowsnpm run test
: Run testsnpm run testWatch
: Run tests in watch mode
- None as of now
I'm available for freelance, contracts, and consulting both remotely and in the Hudson Valley, NY (USA) area. Some more about me and what I can do for you.
Feel free to drop me a message at:
hi [a+] zweisolutions {โ} com