- Create a Firebase project and set up authentication. Use these videos as a refresher if needed.
- Create a
.env
file at the root of the project - Copy/Paste the contents of the
.env.sample
file to your newly created.env
file. - Copy over all of your Firebase values into the
.env
file. - Open the
package.json
file and change thename
property to the name of your application, andauthor
to your name. - From your command line, be in the root directory and run
npm install
ORnpm i
for short. - Next, run
npm run prepare
. This command sets up husky to track eslint errors on commit that will make your deploy fail on Netlify. - To start your application, run
npm run dev
. THIS IS THE COMMAND YOU WILL USE TO RUN YOUR DEVELOPMENT SERVER FROM NOW ON. - Open http://localhost:3000 with your browser.
You can start editing the page by modifying pages/index.js
. The page auto-updates as you edit the file.
NOTES:
- If you see the following error, you did not follow all the setup steps correctly and failed to add your Firebase creds. Go back and do that NOW.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.