jpmehedi / github_users_app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Github Users App

A client app that allows you to view GitHub users.

Getting Started

These instructions will help you set up and run the Flutter project on your local machine.

Prerequisites

Before starting, ensure you have met the following requirements:

Installation

  1. Clone the repository:

    git clone https://github.com/jpmehedi/github_users_app.git
  2. Navigate to the project directory:

    cd github_users_app
  3. Install the dependencies:

    flutter pub get

Configuration

Before running the app, please explore lib/utilities/api_endpoint.dart and update the following line with your GitHub personal access token:

const String githubToken = "YOUR_GITHUB_PERSONAL_ACCESS_TOKEN";

Note: Make sure to keep your personal access token secure and never commit it to a public repository.

Running the Project

  1. Ensure a device is connected or an emulator is running:

    • Check the connected devices with:

      flutter devices
  2. Run the application:

    flutter run

Build for Production

To build the app for production (release mode), use the following command:

  • For Android:

    flutter build apk --release
  • For iOS:

    flutter build ios --release

For more build options and detailed instructions, refer to the Flutter build documentation.

Folder Structure

Here’s an overview of the folder structure in the project:

your-repo-name/
├── lib/                      # Main source code folder
│   ├── main.dart             # Entry point of the application
│   ├── model/                # Data models
│   ├── view/                 # UI screens
│   ├── controller/           # Business logic and API services
│   ├── utilities/            # Global, Keys, Api Endpint, etc.
│   ├── router/               #Router setting.
│   └── theme/                # Theme services
├── test/                     # Unit and widget tests
├── assets/                   # Assets such as images, fonts, etc.
└── pubspec.yaml              # Project configuration file

Troubleshooting

If you encounter issues while running the project, consider the following steps:

  • Check Flutter and Dart Versions: Ensure you are using compatible versions of Flutter and Dart.
  • Update Flutter: Run flutter upgrade to update to the latest version.
  • Clear Cache: Try running flutter clean followed by flutter pub get.
  • Check Connected Devices: Ensure a device is connected and recognized by Flutter.

For more troubleshooting tips, refer to the Flutter documentation.

About


Languages

Language:Dart 43.9%Language:C++ 27.5%Language:CMake 22.5%Language:Swift 2.2%Language:HTML 2.1%Language:C 1.6%Language:Kotlin 0.1%Language:Objective-C 0.0%