flutter_app
Usage
You can build and run this app by yourself. You'll need Git, Flutter, NPM and Android Studio installed.
Building this app for yourself needs 2 steps:
- Basic Setup
- Firebase Integration
I'll describe these steps in detail.
1. Basic Setup
First of all, clone this project by running command:
$ git clone https://git.gvk.idi.ntnu.no/haryal/stress_detection.git
Open cloned directory with Android Studio and it'll notify you to run Packages get
to install dependencies. Do that.
2. Firebase Integration
This app uses various features of Firebase, including Firebase Authentication, Firebase Realtime Database, Cloud Firestore. If Firebase is not set up, you can still build the app, but you won't be able to save the data, see the first screen.
(1) Create Firebase project
First, you have to create a new project in Firebase Console. Click on the Create a project. Image here Set a project name (or it can be anything else) Image herer Go into your newly created project. Click Android button: Image here Register your app in the firebase console. Go to the android>app>build.gradle and copy the applicationID and use that to register the app.
Download the config file and put in the android>app> along with build.gradle file. Then Click on Next Flutter app is connect with the firebase console. You can see the realtime database on the left side of the firebase console page. Once you save the data to the database, the result will be reflected in the database.