This app is dedicated to helping Ensign College students to orient themselves in Ensign College.
List the requirements that need to be met before starting with the project. This may include:
Step-by-step instructions on how to set up the project. Include the following:
Clone the repository:
git clone https://github.com/Ensign-College/survival-guide.git
Install dependencies:
Open your terminal in survival-guide
flutter pub get
Create a new branch and switch to it:
git checkout -b <your_github_username/feature-name>
Ensure that the Flutter development environment is properly set up:
flutter doctor
Create an .env
file at root directory to store your API keys duplicating 'example.env' and renaming to '.env'. This file should not be committed to version control (.gitignore takes care of that).
lib/.env
Instructions for running the project. Include the following:
Option 1: Installing an Emulator
Install Android Studio: https://developer.android.com/studio
Launch Android Studio and open the AVD Manager: Click on the "AVD Manager" icon in the toolbar or access it through the "Configure" menu.
Create a new Virtual Device: Click on the "Create Virtual Device" button in the AVD Manager.
Choose a device: Select a device from the list (e.g., Pixel phone model) and click "Next."
Select a system image: Choose a system image that corresponds to the desired Android version and click "Next."
Configure the virtual device: Set configuration options (e.g., device name, storage size) and click "Finish."
Start the emulator: Select the newly created virtual device in the AVD Manager and click the "Play" button.
Wait for the emulator to launch.
Run the Flutter app: In your Flutter project directory, run the command 'flutter run' and select the running emulator from the list of devices.
Option 2: Connecting a Mobile Device
Enable Developer Options on your mobile device: Go to "Settings" > "About Phone" > Tap on "Build Number" seven times to enable Developer Options.
Enable USB Debugging: In the "Settings" menu, go to "Developer Options" and enable "USB Debugging."
Connect your device via USB: Connect your mobile device to your computer using a USB cable.
Allow USB debugging on your device: When prompted on your mobile device to allow USB debugging, tap "OK" or "Allow."
Verify device connection: Press Ctrl + Shift + P and type device, Select: 'Flutter: Select Device' and then choose your device.
Run the Flutter app: In your Flutter project directory, run 'flutter run'.
This project uses commitlint
Your git commit should include one of the below prefixes:
build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test
Remember to always prioritize the security of API keys and sensitive information. Never commit or merge code that includes API keys or any confidential data. Ensure that the .env
file is properly excluded from version control by adding it to the .gitignore
file.