Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Functioning Template of Nuxt + Vuetify 2 + Firebase with SSR. Authorization & roles are scaffolded in.

License

Notifications You must be signed in to change notification settings

jon-lipstate/nuxt-firebase-ssr-template

Repository files navigation

Nuxt Firebase SSR Template

Nuxt, Vuetify, Firebase Template for SSR. Contains pre-wired User [Store, Authorization, Roles]

Build Setup

# install dependencies
$ npm run install
$ cd functions
$ npm run install

# serve with hot reload at localhost:3000
$ npm run dev

# build for production and deploy to firebase
$ npm run prep
$ firebase deploy

Project Setup

revise .firebaserc with your project id

add firebase config object to src/services/fireInit.js

add a .env file in the src/ directory

edit nuxt.config.js at sitemap.hostname with your hostname

Note: functions/package.json needs to have the same dependencies as the main project's package.json file, otherwise SSR is unable to perform its role.

Warning: Only use firebase deploy from the top level directory. Attempting to deploy from /functions, or other paths results in a 404 error.

For the auth package to work, enable email/password authentication at https://console.firebase.google.com/ for your project.

About

Functioning Template of Nuxt + Vuetify 2 + Firebase with SSR. Authorization & roles are scaffolded in.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published