Go
Fiber V2
Redis
| Github GraphQL API
GitHub Organization Ranking API
a toy project for practicing GitHub API usage and caching.
-
Clone the repository and install dependencies:
git clone https://github.com/yourusername/gitrank.git cd gitrank go mod tidy
-
Configure environment variables:
- Copy
example.env
to.env
and fill in your values (GitHub token, Redis, etc).
- Copy
-
Run Redis server:
- If you have Docker installed Or install Redis locally and start the server.
-
Run Worker server
go run cmd/worker/main.go
-
Run the API server:
go run cmd/api/main.go
-
Make a request:
- Example:
curl http://localhost:2626/rank
- The API will return ranking data in JSON format.
- Example:
-
You can use sample ui