Skip to content

This is a website utilising the hacker-news API and a custom pagination implementation

Notifications You must be signed in to change notification settings

Konstrukteur/hacker-news-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hacker News App

Write an api served app application with React

The goal of this project is to write a simple custom implementation of the Hacker News at ycombinator https://news.ycombinator.com/news.

The main functional requirements are to use an API, asynchronous code, pagination and deployment to gh=pages.

The implementation of this website can be viewed here

initial design

API

Algolia API https://hn.algolia.com/api

Deployment on GitHub

  • gustomize root path to github repository root path in package.json

    • "homepage": "http://{github-username}.github.io/{repo-name}",
  • install gh-pages

    • npm install gh-pages --save-dev
  • add predeploy and deploy script to package.json. customize the gh-pages deply script

    • "predeploy" : "npm run build",
    • "deploy" : "gh-pages -d build (--remote github)",
  • commit and push to github

    • git add .
    • git commit -m "setup gh-pages"
    • git push
  • deploy

    • npm run deploy

About

This is a website utilising the hacker-news API and a custom pagination implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published