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.local
and add environment variables (see.env
for example). - Modify the API route to match your database structure.
$ vc dev
Next.js app + API available at http://localhost:3000.
From the root directory.
$ vc --prod