Kickstart Your Next.js Journey with OAuth and Firebase. Welcome to your Next.js app, pre-equipped with NextAuth.js and Firebase for seamless authentication. Follow the outlined steps to effortlessly set up your project. If you're new to any part of the process, Reveale into the detailed step-by-step guides by clicking on the respective steps card. Fun fact: this site was built using this very template!
Before you begin, clone the template repository to get started with the project. Open your terminal and run the following command where you want to keep your project code:
git clone https://github.com/JordanReady/auth-firebase-starter-kit.git your-app-name
This project comes with step by step instructions to get everthing setup properly. There is a brief overview below.
Follow these steps to create a Google Cloud account and set up your project for this Next.js app:
For detailed instructions, refer to the Google Cloud Getting Started Guide.
Now, let's set up a Firebase project to use as the backend for your Next.js app:
Refer to the Firebase Web Setup Guide for detailed instructions.
Configure environment files and create a firebase.ts file to manage Firebase settings:
cp .env.example .env
View the Next.js Environment Variables documentation for details on setting up environment variables.
Congratulations on completing the initial setup! Now it's time to customize the starter files and start developing your Next.js app.
Feel free to tailor the page.tsx file in your app directory to match your project requirements.
You have the flexibility to either remove or build upon the pre-made route folders. I've included about, protected, and step folders to kickstart your development.
You're almost there! Let's deploy your Next.js app to Vercel and make it live for the world to see.
npm install -g vercel
vercel --prod
Congratulations! Your Next.js app is now live on the internet. Share the provided URL with the world.