A quick and easy polling application for meetings
If you are not running from the production domain, make sure to use localhost:7357
to be authorized for google-oauth
flutter run -d chrome --web-port=7357
You can add and change authorized ports over here: https://console.cloud.google.com/apis/credentials/oauthclient/176622864765-ffftd7fr8q7658gv5etoho6p19gmamu9.apps.googleusercontent.com?folder=&organizationId=&project=blueberry-poll-one
The firebase database is split into two parent nodes
production-organization
and development-organization
You can change which one the program uses in the main.dart
file
This is so that you can develop the application while not having to interfere with people using the application at the same time.
-
Make sure firebase-tools are installed in your project directory:
npm install -g firebase-tools
-
Login to firebase tools
firebase login
-
Run:
firebase init
Select the Firebase Hosting option
Then as the public directory put the path:
build/web
or what corresponds to the build output from flutter for you configure as single-page app: YES
- Build the project:
flutter build web
- Upload to firebase hosting
firebase deploy
🚨 Currently there is an issue with the production export, where it does not match the debug run. You can test the errors by running the program like this:
flutter run -d chrome --profile --web-port=5000