A Next.js 16 learning project with Firebase Authentication, Tailwind CSS v4, and a full Vitest test suite.
/login— email/password login with Firebase Auth, remember me, and password visibility toggle- Vitest unit, hook, and component tests
- Firebase Auth emulator for integration tests
Copy the environment file and fill in your Firebase project values:
cp .env.local.example .env.local # then edit with your Firebase config
pnpm install
pnpm devOpen http://localhost:3000/login.
| Command | Description |
|---|---|
pnpm dev |
Start dev server (Turbopack) |
pnpm build |
Production build |
pnpm lint |
Run ESLint |
pnpm test:run |
Run unit/hook/component tests (44 tests) |
pnpm test |
Run tests in watch mode |
pnpm test:integration |
Run Firebase emulator integration tests |
Requires the Firebase CLI and Java 17+.
firebase emulators:start --only auth # in one terminal
pnpm test:integration # in another