$ git clone https://github.com/AhmedAbdoElhawary/flutter-clean-architecture-instagram
$ cd flutter-clean-architecture-instagram/
3. Setup the app
I made the setup with more details and visuals to make it easy for any level to set up the app.
Click to expand
<!DOCTYPE html>
.Connection with Firebase
Run this line in your PowerShell as administrator:
Set-ExecutionPolicy RemoteSigned
Then, press y to comfirm
We need to log in with Firebase. Run this line:
firebase login
Then, press y to comfirm
Then, choose the account that you want to create Firebase services with it.
Then, press Allow
In PowerShell, write the disk that the project is exciting. For example, I have InstaAwesome in D. So, I will write it Like this:
d:
Add the following line, replacing <path-to-project-root> with the path to the project root:
cd<path-to-project-root>
Then, run this line:
dart pub global activate flutterfire_cli
Then, run this line:
flutterfire configure
Select Create a new project and press enter
Write project name with this formatmy-cool-project
Select android, ios, and web. dis select macos right now, And press Enter
Enable Firebase services
Enable those services: Authentication, Firestor Database, Storage, and Messaging. And take the ‘Cloud Messaging server key’ copy from ‘Cloud Messaging’ in ‘Project settings’.
Enable Email/Password in Authentication:
Enable Firestor Database:
Change allow read, write: if false; to allow read, write: if true;
Enable Storage the same as Firebase Database:
Enable Messaging
Enable Messaging Server key
Take the server key copy:
Then, past the key in the project lib\core\utility\private_keys.dart in notificationKey after = like this:
.Connection with Agora
Agora is a real-time communication platform that provides a set of APIs and SDKs for adding voice↳
Step 1: Create an Agora Account and Get a Test Key
Before we can connect our Flutter app with Agora, we need to create an Agora account and get a test key. Here are the steps to get an Agora test key: