Nuxt v2 & Firebase(Hosting / Functions SSR / Firestore), Google Auth SNS Example.
Need the following environment variables.
export APIKEY= export AUTHDOMAIN= export DATABASEURL= export PROJECTID= export STORAGEBUCKET= export MESSAGINGSENDERID= export APPID=
recommendation: direnv/direnv
# install dependencies $ yarnserve with hot reload at localhost:3000
$ yarn dev
build for production and launch server
$ yarn build $ yarn start
This application can also be launched with the normal Node.js application. However, by using Firebase Hosting and Firebase Functions, it can be used efficiently in a serverless environment.
$ yarn firebase init
firebase functions:config:set environment.apikey="" firebase functions:config:set environment.authdomain="" firebase functions:config:set environment.databaseurl="" firebase functions:config:set environment.projectid="" firebase functions:config:set environment.storagebucket="" firebase functions:config:set environment.messagingsenderid="" firebase functions:config:set environment.appid=""
$ yarn deploy