Skip to content

hemants1703/hacker-news-API-react-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hacker News API React App

React Vite Chakra UI License: MIT

A modern, responsive Hacker News client built with React, Vite, and Chakra UI. Search and browse Hacker News stories with a clean, intuitive interface.

Hacker News API React App

🚀 Live Demo

Check out the live demo here

✨ Features

Home Screen

  • 🔍 Search for stories with a prominent search field
  • 📋 View search results in a clean, organized list
  • ⚡ Real-time search results using the Hacker News Algolia API
  • 🎨 Sleek UI with responsive design

Post Detail Screen

  • 📰 View comprehensive post details
  • 👍 See points/votes for each post
  • 💬 Browse all comments with nested threading
  • 👤 View author information with links to profiles

🛠️ Technologies Used

📋 Development Approach

  • Modular architecture for maintainability and code organization
  • Separate services for data fetching logic
  • Consistent theme using Chakra UI's theming system
  • DRY (Don't Repeat Yourself) approach to reduce code duplication
  • Responsive design that works on mobile, tablet, and desktop
  • Optimized for performance with efficient rendering

🚀 Getting Started

Prerequisites

  • Node.js (v14 or higher)
  • npm or yarn

Installation

  1. Clone the repository:
    git clone https://github.com/hemants1703/hacker-news-API-react-app.git
    cd hacker-news-API-react-app
  2. Install dependencies:
    pnpm install
  3. Start the development server:
    pnpm run dev
  4. Open http://localhost:3000 in your browser

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Connect with Me 🤝

If you have any questions or just want to chat, feel free to reach out to me! X (formerly Twitter) Follow LinkedIn

📝 License

This project is open source and available under the MIT License.

About

Hacker News App that displays search results from the Hacker News Algolia API

Topics

Resources

Stars

Watchers

Forks