Skip to content

About

GitHub Users and Repositories API is a backend service to provide user informations and their respective repositories;

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

GitHub Users and Repositories API

Overview

GitHub Users and Repositories API is a backend service to provide user informations and their respective repositories;

NestJS Jest Postgres TypeScript Docker TypeORM

Features

  • Import Data from GitHub: Import user information and their repositories from GitHub to local database.
  • Fetch User: Fetch user information and their repositories.
  • Search Repositories: Search repositories by part of repository name.
  • API Documentation: Comprehensive API documentation using Swagger.
  • Testing: Testing framework using Jest for unit tests.

Getting Started

Pre-requisites

  • Docker (optional)
  • Node.js (version 20 or higher) if you are running without Docker
  • Yarn (version 1.22.22 or higher) if you are running without Docker

Installation

  1. Clone the repository:
  git clone https://github.com/EdersonDav/github_repositories_api.git
  1. Navigate to the project directory:
  cd github_repositories_api
  1. Set environment:
  cp .env.example .env 

With Docker

  1. Run:
  docker compose up --build

Without Docker

  1. Install dependencies:
  yarn install
  1. Run:
  yarn start:dev

Running Unit Tests With Docker

  • To run unit tests without coverage, execute: docker exec -it github_api yarn test

Running Unit Tests Without Docker

  • To run unit tests without coverage, execute: yarn test

Documentations and Managers

GitHub Users and Repositories Swagger Documentation

The API documentation is available at {base_url}:{port}/api-docs when the application is running.

About

GitHub Users and Repositories API is a backend service to provide user informations and their respective repositories;

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages