Returns a list of the top 50 most followed GitHub users in a particular country
To get started with the project, follow these steps:
- Clone the repository
- Navigate to the project directory
- Set the required environment variables
- Install the project dependencies using
go get ./...
- Build the project using
go build -o main ./app
- Run the project using
./main
The project requires certain environment variables to be set in order to function properly. You can find a list of required variables in the .env.example
file.
The project is flexible when it comes to loading the environment variables. You can use any of the following ways to set the environment variables:
- Create a
.env
file in the root directory of the project and add your variables there. The project will automatically read these variables on startup. - Set environment variables directly in your shell using the
export
command. For example, you could runexport GITHUB_API_TOKEN=your_token
to set theGITHUB_API_TOKEN
variable. Note that this method will only set the variable for the current shell session. - When running the compiled executable file, you can set environment variables inline like this:
GITHUB_API_TOKEN=your_token ./main
. This will set theGITHUB_API_TOKEN
variable specifically for the execution of that command.
If you encounter any issues with the project, please report them on the GitHub issue tracker.
If you would like to contribute to the project, please follow these steps:
- Fork the repository
- Create a new branch for your feature or bug fix
- Make your changes and commit them
- Push your changes to your forked repository
- Open a pull request
Frontend repository: https://github.com/kerolloz/most-followed-github-users