1919yuan / nuxt-firebase-example

Example Nuxt.js app in SSR mode with Firebase authentication, firestore, deployed to Firebaes functions and hosting
MIT License
7 stars 2 forks source link

nuxt-firebase-example

Example Nuxt Firebase integration in SSR mode with authentication, hosting, firestore and functions. The accompanying tutorial is here The demo website is here

Build Setup

# install dependencies
$ yarn install && yarn --cwd functions install

# predeploy for development environment
$ yarn preparedev

# predeploy for production environment
$ yarn prepareprd

# serve with hot reload at localhost:8080
$ yarn dev

# build for production and launch Firebase hosting at localhost:5000
# Firebase functions at localhost:5001
$ yarn build
$ yarn ssr

# deploy to development Firebase project
$ yarn stage

# deploy to production Firebase project
$ yarn deploy

# clean up repo
$ yarn clean

References