Next.js app using API Routes to connect with Firestore.
- Create a project in Firebase.
- Download your Firebase Service Account.
- Create a new file
.env.localand add environment variables (see.env.examplefor an example).
$ yarn dev
Your app is available at http://localhost:3000.