A Hacker News clone with users, posts and nested comments made with React, Node.js/Express and Postgres.
Uses WITH Queries (Common Table Expressions) for comments.
Install and setup Git, PostgreSQL , yarn/npm and Node.
Get the source code:
git clone https://github.com/MakChan/nested-comments.gitCreate a new PostgreSQL database.
Open ".sample.env", add the following values according to created database and rename it to ".env":
DATABASE_NAME;DATABASE_USER;DATABASE_PASSWORD;DATABASE_HOST;
Install dependencies.
yarn installRun the application
yarn startOpen the browser and the following url will open automatically.
localhost:3001