Giter VIP home page Giter VIP logo

gh-trends's Introduction

Catch the Code Wave: Today's Hottest GitHub Trends

A React-based web application to discover trending repositories on GitHub, allowing users to view and manage their favorite repositories.

https://gh-trends.vercel.app/

Diagram of the app logic composition

Domain diagram

Table of Contents

  1. Features
  2. Getting started
    1. Prerequisites
    2. Installation
  3. Usage
  4. Technology Stack
  5. Tests
  6. License

Features

  • Display a list of trending repositories created in the last 7 days, sorted by the number of stars.
  • Allow users to mark a repository as a favorite.
  • View favorite repositories using a filter or a separate tab.
  • Show basic information about the repository, including the name, link to GitHub, description, and number of stars.
  • Store favorite repositories locally using local storage.
  • (Bonus) Filter repositories by programming languages.

Getting Started

These instructions will help you set up the project on your local machine for development and testing purposes.

Prerequisites

Node.js (version 16 or higher)

Installation

Clone the repository:

git clone https://github.com/karliky/gh-trends

Change to the project directory:

cd gh-trends

Install dependencies:

npm install

Start the development server:

npm run dev

The application should now be running on http://localhost:3000.

Live application can be found at https://gh-trends.vercel.app/

Usage

Visit the application in your browser.

Browse the list of trending repositories and mark your favorites by clicking the bookmark icon.

Use the "Trending" and "Favorites" tabs to switch between the full list of repositories and your favorite repositories.

Filter repositories by programming languages using the dropdown menu.

Technology Stack

  • React
  • Next.js
  • TypeScript
  • CSS Modules
  • GitHub REST API

Tests

Tests are written using React Testing Library under the src\__tests__ folder.

$ npm run test
 PASS  src/__tests__/components/filter.test.tsx
 PASS  src/__tests__/components/repositoryList.test.tsx
 PASS  src/__tests__/index.test.tsx

Test Suites: 3 passed, 3 total
Tests:       8 passed, 8 total
Snapshots:   0 total
Time:        2.82 s
Ran all test suites.

License

This project is licensed under the MIT License. See the LICENSE file for details.

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.