Setup the project
Let’s setup the project, but before make sure you have everything ready.
Prerequisites
ShipFlutter uses Flutter and Firebase. Before you start, make sure you have:
-
Setup Firebase CLI (more info)
-
Install Firebase CLI
-
Log into Firebase
-
Install the FlutterFire CLI by running the following command from any directory:
-
Initial setup
To setup the project and workspace follow these steps:
-
Download project (either from the email or within the builder)
-
Unzip and extract contents to your workspace
-
Open with VSCode or Android Studio
-
Run setup script
-
The project should run but might not work yet since its missing Firebase configuration. Try it out!
Firebase setup
In order to use Firebase in your project you will need to create or select a project, configure the app and the different services you need.
-
Setup Firebase for your app (from within the app folder). This will start the setup process.
-
When prompted, say
yes
to override thefirebase_options.dart
. -
Select or create a Firebase Project
-
Select the platform you want to support.
-
A
firebase_options.dart
file will be created and all targets will be registered in your Firebase project. -
Now select the project you just created by running:
-
It will prompt for an alias. Just give it
default
After these setps, the firebase setup is ready and the app can run but some Firebase service might not work yet. Additionally, each module might require additional configuration to work.
Running the app
Run the app by running:
You can also select a target or run the app via VSCode or Android Studio (more info).