I read Hacker News (HN hereafter) daily.
The way I read is that, I skim through titles and open 5~10 stories and actually read 2~5.
Two problems I have with HN.
- Each HN page shows 30 stories only and
- having to click on “more” for a post-back seemed too much of a pain
And I don’t need real-time updates of the story.
So I created SHaNc, a Static page Hacker News clone.
I will only introduce you SHaNc in this article. Details on how it was built and problems faced while building it will be discussed in the next post.
Let’s deploy a
create-react-app generated site on Netlify.
After signing in to Netlify, click on New Site from Git on the top right.
Click on GitHub button to choose a repository to deploy. It will prompt you for GitHub access.
You can give Netlify only a public repo access by clicking on the checkbox below “GitHub” button.
Filter by repo name and “pick a repository” by clicking on a repo returned.
Set the basic settings for
- Build command –
npm run build
- Publish directory –
After clicking on the “Deploy site” button, you will be forwarded to an “Overview” page with “Site deploy in progress” message.
After a few moments (<- this is relative term….), you will see a randomly generated URL.
OK, you just deployed a site on Netlify 🎉🎉🎉