{"id":19519022,"url":"https://github.com/bizz84/flutter-firebase-masterclass","last_synced_at":"2025-04-05T15:07:24.811Z","repository":{"id":156325528,"uuid":"605184452","full_name":"bizz84/flutter-firebase-masterclass","owner":"bizz84","description":"Flutter \u0026 Firebase Masterclass","archived":false,"fork":false,"pushed_at":"2024-11-19T12:15:51.000Z","size":3169,"stargazers_count":109,"open_issues_count":1,"forks_count":41,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T14:09:16.892Z","etag":null,"topics":["firebase","flutter"],"latest_commit_sha":null,"homepage":"https://codewithandrea.com/courses/flutter-firebase-masterclass/","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bizz84.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-22T16:16:06.000Z","updated_at":"2025-03-13T17:32:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"e39b1f96-aeef-4c95-8ff0-e6800a6f9db2","html_url":"https://github.com/bizz84/flutter-firebase-masterclass","commit_stats":{"total_commits":144,"total_committers":1,"mean_commits":144.0,"dds":0.0,"last_synced_commit":"7cc95be024e635ed8d93c6258d35d91adb8af622"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bizz84%2Fflutter-firebase-masterclass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bizz84%2Fflutter-firebase-masterclass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bizz84%2Fflutter-firebase-masterclass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bizz84%2Fflutter-firebase-masterclass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bizz84","download_url":"https://codeload.github.com/bizz84/flutter-firebase-masterclass/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247353745,"owners_count":20925329,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["firebase","flutter"],"created_at":"2024-11-11T00:15:53.609Z","updated_at":"2025-04-05T15:07:24.786Z","avatar_url":"https://github.com/bizz84.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flutter \u0026 Firebase Masterclass - eCommerce App\n\nThis is the official repo for this course:\n\n- [Flutter \u0026 Firebase Masterclass](https://codewithandrea.com/courses/flutter-firebase-masterclass/)\n\nThis will include a full-stack eCommerce app using Flutter \u0026 Firebase:\n\n![eCommerce App Preview](/.github/images/ecommerce-app-preview.png)\n\n## Project Setup\n\nTo clone the repo for the first time and open it in VSCode, run this:\n\n```\ngit clone https://github.com/bizz84/flutter-firebase-masterclass.git\ncd flutter-firebase-masterclass\ncode .\n```\n\nThis will checkout the `main` branch which contains the **latest code**.\n\nBut at various points in the course, I'll ask you to checkout a **specific branch name**, so you can follow along with the right code, at the right time.\n\nAnd to prevent any conflicts, you may need to reset your local changes:\n\n```\ngit reset --hard HEAD\ngit checkout \u003cbranch-name\u003e\n```\n\n### Firebase Setup\n\nSince the project uses Firebase, some additional files will be needed:\n\n```\nlib/firebase_options.dart\nios/Runner/GoogleService-Info.plist\nios/firebase_app_id_file.json\nmacos/Runner/GoogleService-Info.plist\nmacos/firebase_app_id_file.json\nandroid/app/google-services.json\n```\n\nThese files have been added to `.gitignore`, so you need to run this command to generate them with the flutterfire CLI:\n\n```\ncd ecommerce_app\nflutterfire configure\n```\n\nTo ensure the Firebase rules and cloud functions are deployed, run:\n\n```\nfirebase deploy\n```\n\n### Stripe Setup\n\nIn module 8 of the course, we add Stripe to the eCommerce app.\n\nFor the Stripe code to work, a `STRIPE_PUBLISHABLE_KEY` needs to be set on the client.\n\nTo set it, create an `.env` file inside the `ecommerce_app` folder and add your [Stripe publishable key](https://dashboard.stripe.com/test/apikeys):\n\n```bash\n# ecommerce_app/.env\nSTRIPE_PUBLISHABLE_KEY=pk_test_YOUR_STRIPE_PUBLISHABLE_KEY\n```\n\nThen, run the generator:\n\n```bash\ndart run build_runner build -d\n```\n\nThis will generate an `env.g.dart` file inside `lib`.\n\nAs a result, the API key can be read as `Env.stripePublishableKey` in the Stripe setup code.\n\n\u003e [!NOTE]\n\u003e API keys defined with `--dart-define-from-file` were failing to load on Flutter web in release mode (see [this answer](https://stackoverflow.com/a/65647968/436422) and [this comment](https://stackoverflow.com/questions/65647090/access-dart-define-environment-variables-inside-index-html#comment120444154_65647968)). To work around that, the project now uses the [Envied](https://pub.dev/packages/envied) package.\n\n## Documentation site\n\nA documentation site with useful FAQs and guides can be found here:\n\n- [Flutter \u0026 Firebase Masterclass - Documentation](https://docs.page/bizz84/flutter-firebase-masterclass/index)\n\n### [LICENSE: MIT](LICENSE.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbizz84%2Fflutter-firebase-masterclass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbizz84%2Fflutter-firebase-masterclass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbizz84%2Fflutter-firebase-masterclass/lists"}