This template works like an template server that you can just add stuff and still work. It should be connected to a mobile Flutter App.
- Node
- Express.JS
- TypeScript
- Firebase Auth
- PostgreSQL
You'll find on the auth_service.ts
something like this:
import admin from "firebase-admin";
import { config } from "../config/config";
admin.initializeApp({
credential: admin.credential.cert({
projectId: config.firebaseProjectId,
privateKey: config.firebasePrivateKey,
clientEmail: config.firebaseClientEmail,
}),
});
export const authService = admin.auth();
Fill the variables in the .env
file, aaand you're ready to go! Firebase projectId
, privateKey
and clientEmail
you should find it on the Firebase Console. In the Service Accounts section you can generate a new private key.