Based on https://github.com/davidroyer/nuxt2-ssr-firebase
Host a Nuxt Universal app or site by combining Nuxt.js with Firebase Cloud Functions and Hosting.
Obtain a Firebase Project ID to use for this project. See Overiew Here
Inside this directory, locate the file .firebaserc.sample, and do the following:
.firebasercyour-project-id with your Firebase Project ID.Use nvm to install Node 10
nvm install 10
Install firebase tools
npm install -g firebase-tools
yarn setup
yarn build
To test client side only locally:
yarn dev
sudo yarn serve
yarn deploy
Create a Firebase Project using the Firebase Console.
Obtain the Firebase Project ID
You must have the Firebase CLI installed. If you don’t have it install it with npm install -g firebase-tools and then configure it with firebase login.
If you have errors, make sure firebase-tools is up to date. I’ve experienced many problems that were resolved once I updated.
The root directory has a package.json file with several scripts that will be used to optimize and ease getting started and the workflow
ALL commands are ran from the root directory
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.