Use this starter to work with Firebase in your Next.js app
Run the following command to create a new project with this Starter
yarn create next-app projectname --example "https://github.com/m121/nextjs-firebase-starter"
# or
npx create-next-app projectname --example "https://github.com/m121/nextjs-firebase-starter"
Once the project is ready you can navigate to that directory and start up the development server
yarn run dev
# or
npm run dev
Open http://localhost:3000 with your browser to see the result.
In this starter you will find
- Basic Firebase configuration on Next.js
- Basic example fetching a list of books using getInitialProps
- Basic example fetching a book by ID using getInitialProps
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.