A mock up site of Y Combinator's Hacker News
You can visit my project on Heroku: https://fake-hacker-news.herokuapp.com/
It may not load very fast because I am using a shared cluster, not a dedicated one.
In this application, I tried to replicate the most basic features of the Hacker News website. Some of them are:
- Create a new story.
- List all the stories on the front page.
- Edit the uploaded story.
- Remove a story if needed. Basically, full CRUD.
Some key technologies I used in this project:
- NodeJS to use server-side JavaScript and many of its useful packages, such as
method-override
andserve-favicon
. - Web framework Express to make a web server and routings.
- EJS to make dynamic HTML pages.
connect-flash
to display a small alert whenenver the user performs an action.method-override
to get HTML forms to make a PUT and a DELETE request.
Some possible improvements:
- Pagination when there are more than 30 stories in one scroll.
- Allow users to make an account. Regular visitors can only read stories. Only the users with an account can add new stories and only their owners can edit or delete them.