REST microservice that list the languages used by the 100 trending public repos on GitHub.
To run locally simply cd into the root of repo and run following commands:
docker build -tag github-stat:latest
To run the server on port e.g. 8000
docker run -p 8000:8000 -it github-stat:latest uvicorn src.main:app --host 0.0.0.0 --port 8000
GET /language
Endpoint to list the languages used by the 100 trending public repos on GitHub in last 30 days.
curl http://localhost:8000/languages/
A postman Github.postman_collection.json
collection is provided you can run by newman after running up the server
npm install -g newman
newman run Github.postman_collection.json
And also unit testing by pytest
docker exec -it github-stat:latest pytest