- Complete UI is in client folder
- Keep json files in data folder on root. (Download from https://drive.google.com/open?id=1cMh2y1lhKPMUJRAN-MeJJT-etjXgGZX)
- npm install
- npm run build:server
- npm run start:server will start the app on localhost with 3001 port. (Wait for server to parse all json files. "parsing end" will be seen in console)
- npm install
- npm run start will start the app on localhost with 3000 port (open in browser : http://localhost:3001)
- List of posts with comments.
- Users can vote to posts/comments. Votes count updated and posts/comments re-sorted again.
GET
http://localhost:3001/topPOST
http://localhost:3001/upvote/{:id}POST
http://localhost:3001/downvote/{:id}
- start the backend server one of the terminal at http://localhost:3001
- npm run test. Test all 3 API endpoint with current json data.