This project demonstrates how to integrate Firebase Authentication into an Astro project using Astro Actions.
Follow these steps to get the project up and running:
- Node.js and npm installed
- Firebase project set up
- Clone the repository:
git clone https://github.com/mhdZhHan/astro-firebase-auth.git
cd astro-firebase-auth
- Install dependencies:
npm install
- Set up your Firebase configuration in
.env
:
API_KEY=your_api_key
AUTH_DOMAIN=your_auth_domain
PROJECT_ID=your_project_id
STORAGE_BUCKET=your_storage_bucket
MESSAGING_SENDER_ID=your_messaging_sender_id
APP_ID=your_app_id
MEASUREMENT_ID=your_measurement_id
Start the development server:
npm run dev
Open your browser and navigate to http://localhost:3000
.
- Sign up with a new account.
- Log in with your credentials.
- View user information on the profile page.
- Log out from the profile page.
For a detailed guide on integrating Firebase Auth with Astro Actions, check out my blog post