Git Product home page Git Product logo

hacker-news's Introduction

Hacker News Stories

This project displays the top 10 Hacker News stories, sorted by score in ascending order. It's built using Next.js 14 with TypeScript.

Getting Started

First, clone the repository and install the dependencies:

git clone https://github.com/yourusername/hacker-news-stories.git
cd hacker-news-stories
npm install

Then, run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

Features

  • Fetches and displays top 10 Hacker News stories
  • Sorts stories by score in ascending order
  • Responsive design
  • Uses SASS for styling
  • Implements accessibility considerations
  • Optimized for SEO
  • Includes loading experience

Technologies Used

  • Next.js 14
  • TypeScript
  • SASS
  • date-fns for date formatting

Original Code vs Boilerplate

All code in src/app/page.tsx, src/app/page.module.scss, and src/styles/globals.scss is original. The project structure and configuration files were generated using create-next-app.

Testing

To run the tests:

npm test

Performance

This project aims to achieve good web performance metrics. To check the performance, you can use tools like Lighthouse in Chrome DevTools.

Accessibility

The project follows WCAG 2.1 guidelines for accessibility. Key considerations include:

  • Semantic HTML structure
  • Proper use of ARIA attributes where necessary
  • Keyboard navigation support
  • Color contrast ratios

SEO

SEO optimizations include:

  • Use of metadata in layout.tsx
  • Semantic HTML structure
  • Responsive design for mobile-friendliness

License

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

hacker-news's People

Contributors

lanzosuarez 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.