Boilerplate for React TypeScript projects using Next.js, shadcn/ui, Tailwind and Firebase on Vercel!
Now using Next.js app router!
This stack is ๐ฅ because projects can be built and deployed for free until you get to higher tiers within Vercel/Firebase which only happens once you get lots of DAUs.
- Vercel for cloud and automated deployments
- Next.js for better React
- Firebase for auth and database (Firestore)
- Shadcn and Tailwind for UI/styling
Let me know if you have any questions! Godspeed.
- Make sure your Firebase project has authentication added
- Get your public Firebase config and paste it into
components\firebase-providers.tsx
npm i
andnpm run dev
The following is only needed if you want to use firebase/admin
(not part of this project by default)
- Create a new file at the root level called
.env.local
- Define a new variable there called
FIREBASE_ADMIN_SDK
- Get your Firebase service account private key and stringify it then set the above variable to that string
e.g.:
FIREBASE_ADMIN_SDK={"type":"service_account","project_id":"sleeptoken",...}
- You can use
api/test.ts
to stringify your private key so you can use in in the environment - You need to define the same
FIREBASE_ADMIN_SDK
environment variable in Vercel
Created by โฌก Enesien Software