A simple FastAPI application that uses the GitHub API to fetch and display the public repositories of a given user. For each repository, it shows the name, description, language and number of stars.
-
Installing requirements
To install the necessary python libraries, run the following in the root directory.
pip install -r requirements.txt
- Run Server
uvicorn app.main:app --reload
-
Usage
Navigate to
http://127.0.0.1:8000/repositories/{username}
in your browser or send a GET request using tools such as Thunder Client, replacing{username}
with a GitHub username. -
Testing
run the following
pytest tests