- HTML (MDN) docs: https://developer.mozilla.org/en-US/docs/Web/HTML
- CSS (MDN) docs: https://developer.mozilla.org/en-US/docs/Web/CSS
- Tailwind CSS docs: https://tailwindcss.com/docs/
- PostCSS docs / postcss.config: https://postcss.org/ (see also Tailwind PostCSS install guide)
- daisyUI docs: https://daisyui.com/
- Node.js docs: https://nodejs.org/
- JavaScript (MDN) docs: https://developer.mozilla.org/en-US/docs/Web/JavaScript
- ECMAScript (spec, ECMA-262) docs: https://www.ecma-international.org/publications-and-standards/standards/ecma-262/
- TypeScript docs: https://www.typescriptlang.org/docs/
- Firebase docs: https://firebase.google.com/docs
- ESLint docs: https://eslint.org/docs/latest/
- Prettier docs: https://prettier.io/docs/
- Vite docs: https://vite.dev/
A modern, production-ready authentication starter built with React, Vite, Firebase Authentication, Tailwind CSS, and DaisyUI.
Seamlessly manage user authentication, protected routes, and beautiful UI - all with best practices and extensibility in mind.
- React 18 with Vite for instant HMR and lightning-fast builds
- Firebase Authentication (Email/Password and Google OAuth)
- Context API for global auth state management
- Protected Routes with React Router v6
- Tailwind CSS and DaisyUI for rapid, responsive, and accessible UI development
- TypeScript for type safety and scalability
- Reusable Components: Header, Profile, Orders, Auth Forms
- Customizable Themes (light, dark, cupcake)
- ESLint and Prettier for code quality
- Production-ready structure and best practices
- Clone the repository:
git clone https://github.com/md-abu-kayser/context-x-auth-starter.gitcd context-x-auth-starter- Install dependencies:
npm install
# or
pnpm install
# or
yarn- Run locally:
npm run dev
# or
pnpm dev- Register: Create a new account with email and password.
- Login: Sign in with email/password or Google.
- Protected Routes: /profile and /orders are accessible only to authenticated users.
- Profile Management: View and (extend to) edit user profile.
- Logout: Securely sign out from any page.
- Built with Tailwind CSS and DaisyUI for rapid, customizable UI.
- Switch between light, dark, and cupcake themes.
- Responsive and accessible by default.
- npm run dev # Start development server
- npm run build # Build for production
- npm run preview # Preview production build
- npm run lint # Run ESLint
- npm run format # Run Prettier
- npm run type-check # Run TypeScript type checks
- Add Fire Store: Connect orders or user data to Fire store.
- Profile Editing: Implement profile update logic in Profile.tsx.
- Password Reset: Add a password reset flow.
- Role-based Access: Extend AuthProvider for admin/user roles.
- React 18
- Vite
- Firebase Authentication
- Tailwind CSS
- DaisyUI
- TypeScript
- ESLint and Prettier
This project is licensed under the terms of the MIT License. The license may be modified for client or proprietary projects as required.
Md Abu Kayser - Frontend / Full-Stack Web Developer
- Project: Context-X - context-x-auth-starter
- GitHub: https://github.com/md-abu-kayser
- Email: abu.kayser.official@gmail.com
For collaboration, interviews, or client-related inquiries, feel free to reach out via GitHub or email.