Documentation
Prepare Firebase and your TypeScript project before installing or initializing Fireclass.
Complete these steps before running fireclass init. Fireclass can scaffold
application files, but it cannot create your Firebase project, enable Firestore,
or choose credentials for you.
Fireclass models use TypeScript decorators. The CLI enables them automatically; manual installations add the compiler options in the framework guide.
Rules are part of your security boundary
React uses the Firebase client SDK and is governed by Firestore Security Rules. Next.js and Express use Firebase Admin on trusted servers and must never expose service-account credentials to the browser.
Register a Firebase Web app and copy its public web configuration. React
uses VITE_FIREBASE_* values and a client-side src/lib/firebase.ts. Never
put a service-account private key in a Vite variable.
Continue with React setup.
Create a service account under Project settings → Service accounts, or use
Application Default Credentials on a supported Google runtime. Local
development normally uses FIREBASE_PROJECT_ID, FIREBASE_CLIENT_EMAIL, and
FIREBASE_PRIVATE_KEY in .env.local.
Continue with Next.js setup.
Create a service account or configure Application Default Credentials. The
recommended local setup uses PROJECT_ID, CLIENT_EMAIL, and
PRIVATE_KEY in a gitignored .env, with a lazy
src/lib/firebase.ts factory.
Continue with Express setup.
.env.local or through ADC.After the checklist passes, return to Installation and run
fireclass init.