First install Nodejs 18.x or higher
Go to the ./backend
folder and add your firebase-admin.json
and your .env
.env
PORT=9000
CRYPTO_JS_SECRET=YOUR_SECRET
## SMTP ###
SMTP_HOST=your_smtpmailhost.com
SMTP_PORT=587
[email protected]
SMTP_PASSWORD=your-password
firebase-admin.json
{
"type": "service_account",
"project_id": "your-projec-id",
"private_key_id": "your-private-key-id",
"private_key": "-----BEGIN PRIVATE KEY-----\nYOUR_KEY-----END PRIVATE KEY-----\n",
"client_email": "[email protected]",
"client_id": "your_client_id",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "client_x509_cert_url"
}
Next run npm install
and run the project using npm run dev
.
Go to the ./app
folder and add your env.json
file with your firebase credentials.
Example:
{
"apiHost": "https://YOUR_API_HOST"
}
And you need to link with your firebase project using flutterfire
Go to the ./app
folder and run
flutterfire config --out=lib/firebase_options.dart --macos-bundle-id=app.meedu.icons
Run your app on Web using
flutter run -d chrome --web-renderer html --release --dart-define-from-file=env.json