Skip to content

genesisneo/nextjs-firebase-mui-study

Repository files navigation

Vercel NextJs + Google Firebase + Google Material UI Study

Simple Google Firebase study using Vercel NextJs with Google Material UI.

The firebase app is initialized in firebase/clientApp.js. To use it, just import it anywhere in the app. The application is using React Context API for state management.

Configuration

  • 👨 Firebase Databse (users)

  • 📄 Firebase Database (database)

  • ⚙️ Firebase Database Rules

  • Create a .env file and copy the contents of .env.example into it.
cp .env.example .env
  • Set each variable on .env with your Firebase Configuration (found in "Project settings").

  • Install it and run the application

npm install
npm run dev

# or

yarn
yarn dev

Notes:

If you will use Vercel, keys will be coming from Vercel Secret keys.

"@firebase-api-key"
"@firebase-auth-domain"
"@firebase-database-url"
"@firebase-project-id"
"@firebase-storage-bucket"
"@firebase-messaging-sender-id"
"@firebase-app-id"

Question:

If you have question, you can always contact me on Twitter @genesis_neo and of course here in GitHub @genesisneo. Thank you.


-=[ ❤️ ]=-