GitHub Users and Repositories API is a backend service to provide user informations and their respective repositories;
- 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.
- 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
- Clone the repository:
git clone https://github.com/EdersonDav/github_repositories_api.git- Navigate to the project directory:
cd github_repositories_api- Set environment:
cp .env.example .env - Run:
docker compose up --build- Install dependencies:
yarn install- Run:
yarn start:dev- To run unit tests without coverage, execute:
docker exec -it github_api yarn test
- To run unit tests without coverage, execute:
yarn test
The API documentation is available at {base_url}:{port}/api-docs when the application is running.