Firebase starter module
Setup
Maps Firebase project settings, local configuration, rules, and app integration points.
- Files
- 15
- Lines
- 770
- Languages
- Config + Markdown + TypeScript + RULES + JSON
Included files
This page lists paths and purposes, not source contents.
.env.example
Configuration required by this starter pack.
Config
42 lines
ADAPT.md
Give these instructions to the coding agent working in the buyer's Next.js project.
Markdown
110 lines
app/account/route.ts
A working protected page; the server, not the browser, decided this user may see it.
TypeScript
63 lines
app/api/firebase/verify/route.ts
GET /api/firebase/verify reports missing settings and checks the Firebase connection.
TypeScript
10 lines
app/api/session/login/route.ts
POST /api/session/login exchanges a Firebase ID token for a secure session cookie.
TypeScript
10 lines
app/api/session/logout/route.ts
POST /api/session/logout clears the Firebase session cookie and returns to sign-in.
TypeScript
10 lines
app/signin/route.ts
A working sign-in page; replace it with your app's real page whenever you are ready.
TypeScript
160 lines
firestore.rules
Configuration required by this starter pack.
RULES
35 lines
OPERATIONS.md
The human moments.
Markdown
44 lines
package.json
Configuration required by this starter pack.
JSON
20 lines
README.md
This starter gives a Next.js App Router application server-verified Firebase sign-in, account state and roles kept in sync between Firebase and your own records, repeat-safe auth events, run-once background work, account emails, deny-by-default Firestore security rules with an automated deploy script, and a readable verification route.
Markdown
78 lines
src/setup/deploy-firestore-rules.ts
One-off setup script: deploys firestore.rules to the configured Firebase project.
TypeScript
90 lines
starter.json
Configuration required by this starter pack.
JSON
6 lines
TROUBLESHOOTING.md
Symptom first, fix first, cause second.
Markdown
77 lines
tsconfig.json
Configuration required by this starter pack.
JSON
15 lines
Questions about setup
Is this a Firebase Next.js starter?
Yes. The pack is built for Next.js apps that need Firebase authentication, trusted checks away from the browser, data access, background work, emails, verification, and setup in one connected system.