Skip to content
Snippets Groups Projects
Commit 66452ea9 authored by Himali Aryal's avatar Himali Aryal
Browse files

readme update

parent 37651012
No related branches found
No related tags found
1 merge request!7Readme update
# flutter_app # flutter_app
A new Flutter application. ## Usage
## Getting Started You can build and run this app by yourself. You'll need [Git](https://git-scm.com), [Flutter](https://flutter.dev/docs/get-started/install), [NPM](https://www.npmjs.com/get-npm) and [Android Studio](https://developer.android.com/studio) installed.
This project is a starting point for a Flutter application. Building this app for yourself needs 2 steps:
A few resources to get you started if this is your first Flutter project: 1. Basic Setup
2. Firebase Integration
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) I'll describe these steps in detail.
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
### 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](https://firebase.google.com/docs/auth/), [Firebase Realtime Database](https://firebase.flutter.dev/docs/database/overview/), [Cloud Firestore](https://firebase.google.com/docs/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](https://console.firebase.google.com/). 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.
For help getting started with Flutter, view our
[online documentation](https://flutter.dev/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment