firebase-nextjs
This project contains a simple Next.js app integrated with Moralis and Firebase.
⚠️ Warning: This demo is under development.
Required Google Cloud services:
🚀 How to Start
- Clone this repo.
- Install Firebase CLI globally:
npm install -g firebase-tools
- Login to your account:
firebase login
- Get list of your projects:
firebase projects:list
. If this list is empty you should add a new project. You can do it by the Firebase Console. - Set your project ID:
firebase use <PROJECT_ID>
- Enable the webframeworks feature:
firebase experiments:enable webframeworks
- Generate a certificate for the Service Account. You will need it in the next step.
- Convert the certificate to extension variables by this online converter. You will use these variables in the next step.
- Install the Authenticate with Moralis Web3 extension:
firebase ext:install moralis/moralis-auth
. - Copy
hosting/.env.example
tohosting/.env
and set all variables. - Activate the
Authentication
feature in the Firebase Console. Go to the Firebase Console > Your Project > Build > Authentication and click the Get Started button.
🔌 Run Locally
- Run emulators:
firebase emulators:start
- Open
http://localhost:5555/
in your browser.