Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jabardigitalservice/pikobar-flutter
Pikobar Flutter (Android) app.
https://github.com/jabardigitalservice/pikobar-flutter
covid-19 mobile pikobar
Last synced: 17 days ago
JSON representation
Pikobar Flutter (Android) app.
- Host: GitHub
- URL: https://github.com/jabardigitalservice/pikobar-flutter
- Owner: jabardigitalservice
- License: mit
- Archived: true
- Created: 2020-03-16T15:05:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-26T08:14:11.000Z (over 2 years ago)
- Last Synced: 2024-08-01T12:24:34.785Z (4 months ago)
- Topics: covid-19, mobile, pikobar
- Language: Dart
- Homepage: https://play.google.com/store/apps/details?id=id.go.jabarprov.pikobar
- Size: 9.52 MB
- Stars: 75
- Watchers: 9
- Forks: 50
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Pikobar Mobile App (Flutter)
[![Quality gate](https://sonar.digitalservice.id/api/project_badges/quality_gate?branch=develop&project=pikobar-mobile)](https://sonar.digitalservice.id/dashboard?id=pikobar-mobile&branch=develop)
[![Maintainability Rating](https://sonar.digitalservice.id/api/project_badges/measure?branch=develop&project=pikobar-mobile&metric=sqale_rating)](https://sonar.digitalservice.id/dashboard?id=pikobar-mobile&branch=develop)
[![Lines of Code](https://sonar.digitalservice.id/api/project_badges/measure?branch=develop&project=pikobar-mobile&metric=ncloc)](https://sonar.digitalservice.id/dashboard?id=pikobar-mobile&branch=develop)
[![Codemagic build status](https://api.codemagic.io/apps/5f3bab9add10563324d17fbd/5f3bab9add10563324d17fbc/status_badge.svg)](https://codemagic.io/apps/5f3bab9add10563324d17fbd/5f3bab9add10563324d17fbc/latest_build)## Index
- [Firebase Setup](#firebase-setup)
- [Firebase SDK](#firebase-sdk)
- [Cloud Firestore Setup](#cloud-firestore-setup)
- [Firebase Service Account](#firebase-service-account)
- [Migrasi data](#migrasi-data)
- [Build Setup](#build-setup)
- [Pedoman Kontributor](#pedoman-kontributor)
## Firebase SetupPikobar menggunakan [Firebase](https://firebase.google.com/) sebagai _backend_.
#### Firebase SDK1. [Buat project baru pada console firebase](https://firebase.google.com/docs/flutter/setup#create_firebase_project)
2. [Konfigurasi aplikasi android untuk menggunakan Firebase](https://firebase.google.com/docs/flutter/setup#configure_an_android_app)
#### Cloud Firestore Setup
1. Di firebase console, pada _sidebar_, lihat grup `Develop`. Pilih `Firestore Database`.
2. Klik `Create database`.
3. Pilih `Start in production mode`,
4. lalu pilih _location_ yang diinginkan untuk Cloud Firestore.
![Create Database](https://user-images.githubusercontent.com/26060382/125148273-4290ee00-e15b-11eb-8e5b-0b2654bff56e.png)
#### Firebase Service Account1. Pada _sidebar_, klik ikon menu :gear:.
2. Pilih `Project settings`.
3. Pilih tab `Service accounts`.
4. Klik `Generate new private key`.
5. Klik `Generate Key` pada bagian popup. Sebuah file JSON akan diunduh ke komputer Anda.
![Generate service account private key](https://user-images.githubusercontent.com/4391973/77879531-d7344d00-7284-11ea-880c-bedab6e508bd.png)#### Migrasi data
1. Ubah nama _file_ JSON yang tadi diunduh menjadi `serviceAccount.json`.
2. Pindahkan _file_ `serviceAccount.json` ke dalam `/migration`.
3. Buka _file_ [`config.js`](https://github.com/jabardigitalservice/pikobar-flutter/blob/setup-environment/migration/config.js) dan ubah nilai `databaseURL` sesuaikan dengan nilai `databaseURL` yang ada di `Service accounts` pada halaman `Project settings` console firebase (lihat pada gambar [Firebase Service Account](#firebase-service-account)).
4. Buka teminal, arahkan ke `/migration`.
5. Jalankan perintah berikut
```bash
# install dependencies
$ npm install# migrasi data ke firestore
$ npm run migrate
```
## Build Setup
``` bash# install dependencies
$ flutter pub get# run debug mode
$ flutter run# run release mode
$ flutter run --release# build app bundle
$ flutter build appbundle# build apk
$ flutter build apk```
For detailed explanation on how things work, check out [Flutter docs](https://flutter.dev/docs).
## Pedoman Kontributor
Jabar Digital Service mengucapkan terima kasih kepada publik yang ingin berkontribusi untuk Pikobar :pray:.
Sebagai panduan, kami mempunyai [panduan umum untuk kontributor](https://github.com/jabardigitalservice/pikobar-relawan-readme/blob/master/README.md) dan [panduan kontributor untuk repositori ini](CONTRIBUTING.md).