Git Product home page Git Product logo

hacker-news-api-react-app's Introduction

Hacker News API React App

Building a Hacker News API React App with Vite, React, Chakra UI and various other web technologies.

Check out the live demo here.

Features

Home Screen

  • Search for stories, Search field on top
  • List of results below the search field
  • Entering a query in the search field will trigger a search request to the Hacker News Algolia API
  • Upon receiving the results from the API, the list of results will be populated

Post detail screen

  • Upon clicking a search result, it takes the user to the post detail screen
  • Dedicated page to view searched posts in a beautiful UI

    Post detail screen features

    • View post title
    • View post points
    • View post comments

Approach & Technologies used

  • Vite to create a React app
  • Chakra UI for styling beautiful UI/UX
  • Hacker News API to fetch data
  • Axios to fetch data
  • React Router to navigate between pages
  • React Hooks to manage state
  • Structured the project in a manner that it is easy to scale and maintain
  • Separate dedicated section for tasks such as fetching data, styling, etc.
  • DRY (Don't Repeat Yourself) approach to avoid repetition of code
  • Implemented a modular architecture to make the code more readable and maintainable
  • various other minor and minute details are taken care of to make the app more user friendly and easy to use as well as maintain and scale in the future

hacker-news-api-react-app's People

Contributors

hemants1703 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.