Git Explorer is a Flutter application that offers a seamless experience for exploring GitHub repositories, issues, and pull requests.
- Dark & Light theme support
- GitHub-inspired theme
- Repository search
- Detailed repository view
- Issues browser
- Pull requests overview
-
Clone the repository:
git clone https://github.com/makjac/git_explorer.git
-
Configure Environment Variables (optional):
Although this step is optional, it is recommended as it will increase your GitHub API's hourly rate limit.
-
Create a
.dart_define
file in the root directory:touch .dart_define/api-keys.dev.json
-
Add the following content to
.dart_define
:{ "GITHUB_AUTHORIZATION": "your_github_personal_access_token" }
-
To generate a personal access token for GitHub, follow these steps:
- Go to GitHub Tokens settings.
- Click Generate new token.
- Copy the generated token and replace
"your_github_personal_access_token"
with it in the.dart_define
file.
-
-
Build Runner Setup:
-
Run the build_runner to generate necessary files:
dart run build_runner build
-
-
Run the application:
-
Simply run the following command:
flutter run --dart-define-from-file .dart_define/api-keys.dev.json
-
To run the unit tests for the application, use the following command:
flutter test