To understand Firebase auth, we need a toy project to tinker with. I'll keep it pretty bare-bones for now. I'll call this project fireauth.
Here's the gist...
- Initialize a Next.js project with
create-next-app
.
- Initialize Firebase services: Firestore, Functions, and Emulator using
firebase init
from the Firebase CLI.
- Initialize the firebase app inside a
firebase.js
file, as explained here.
Here's an overview of the project structure and files involved š
At this point, you should be able to start the Next.js application with the shell command
And you should be able to start the Firebase Emulator services with the shell command
If you open your browser and go to http://localhost:3000/ you should see (very simple) home page.