๐Ÿ“ฆ paulb777 / nextjs-firebase-codelab

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching
๐Ÿ“ฅ Clone https://github.com/paulb777/nextjs-firebase-codelab.git
HTTPS git clone https://github.com/paulb777/nextjs-firebase-codelab.git
SSH git clone git@github.com:paulb777/nextjs-firebase-codelab.git
CLI gh repo clone paulb777/nextjs-firebase-codelab
Paul Beusterien Paul Beusterien Allow users to change each restaurants' photo dcd121f 5 months ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ public
๐Ÿ“ src
๐Ÿ“„ .eslintrc
๐Ÿ“„ .gitignore
๐Ÿ“„ .prettierrc.json
๐Ÿ“„ apphosting.yaml
๐Ÿ“„ firebase.json
๐Ÿ“„ firestore.rules
๐Ÿ“„ jsconfig.json
๐Ÿ“„ next.config.js
๐Ÿ“„ package-lock.json
๐Ÿ“„ package.json
๐Ÿ“„ readme.md
๐Ÿ“„ storage.rules
๐Ÿ“„ README.md

Friendly Eats with Next.js + Firebase

The codelab has the full instructions, but as a quick start, you can do this.

Run the application

  • In your terminal, run:
firebase emulators:start --project demo-codelab-nextjs

  • Copy the file lib/firebase/config-copy.js to lib/firebase/config.js and fill in the values from the Firebase console.
  • In a new terminal tab/window, run:
npm i
npm run dev

  • In your browser, open the URL: http://localhost:3000

Use the application

  • While on http://localhost:3000/ within your browser, click the "Sign in" button in the top right corner and sign in.
  • In the dropdown menu in the top right menu, select "Add sample restaurants".