Skip to content

𝐂𝐨𝐯 π€π‘πžπšπ is a mobile application to track and create better Covid-19 route maps for both shop owners and customers

Notifications You must be signed in to change notification settings

deepakmkoshy/Cov-Ahead

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

73 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

BFH Banner

Cov Ahead

Cov Ahead is a mobile application where shopkeepers have an app that shows QR code and users can scan this QR code which will automatically add that user to the visitor list. This should replace manual entry of contact details in the shop due to COVID.

Team members

  1. Deepak Mathews Koshy
  2. Sarath Radhakrishnan
  3. Abhijith Kp

Team Id

BFH/rec2Gg87JODhKATrd/2021

Link to product walkthrough

Project Walkthrough and Code Explanation

How it Works ?

Google Firebase is used as the backend. Firestore as the database for storing both customer and merchant data. Firebase authentication to authenticate users: Using Google sign in or Email and password.

QR code is generated for merchants using pretty_qr_code package, and the data encoded is the merchant UID. For customer part, scanning of QR code is facilitated by qr_code_scanner. On succesfull scanning of QR code, the data is compared with existing merchant UID and if a match is present, user is shown confirmation screen and the footprint is marked in both the merchant and customer side.

  1. This application is for both customers and shop owners.
  2. Once you choose your role you are requested to Sign In.
  3. For customer it directly takes you to QR scanner. You could also update your information and check the shops you have visited.
  4. For shop owners once they sign Up they are taken to their dashboard to show all the people that visited the shop. You can also update the shop details anytime and view your own QR code.

Libraries used

  • cloud_firestore - 2.1.0
  • firebase_auth - 1.1.4
  • firebase_core - 1.1.1
  • get - 4.1.4
  • google_sign_in - 5.0.3
  • pretty_qr_code - 2.0.1
  • provider - 5.0.0
  • qr_code_scanner - 0.4.0
  • shared_preferences - 2.0.5

How to configure

2. Clone the repo

$ git clone https://github.com/ikp-773/Cov-Ahead.git
$ cd Cov-Ahead/

3. Setup the firebase app

  1. You'll need to create a Firebase instance. Follow the instructions at https://console.firebase.google.com.
  2. Once your Firebase instance is created, you'll need to enable Google authentication.
  • Go to the Firebase Console for your new instance.
  • Click "Authentication" in the left-hand menu
  • Click the "sign-in method" tab
  • Click "Google" and enable it
  • Click "Email/Password" and enable it
  1. Enable the Firebase Database
  • Go to the Firebase Console
  • Click "Firestore Database" in the left-hand menu
  • Click the "Create Database" button
  • It will prompt you to set up, rules, for the sake of simplicity, let us choose test mode, for now.
  • On the next screen select any of the locations you prefer.
  1. In the Firebase console, in the settings of your Android app, add your SHA-1 key by clicking "Add Fingerprint".

  2. Download google-services.json and place google-services.json into /android/app/.

How to Run

  1. flutter pub get
  2. flutter run

About

𝐂𝐨𝐯 π€π‘πžπšπ is a mobile application to track and create better Covid-19 route maps for both shop owners and customers

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 99.3%
  • Other 0.7%