Run the Nuxt.js application on Firebase.
$ npm install # Or yarn install
$ cd /nuxt-firebase-pwa/src && npm install
$ cd /nuxt-firebase-pwa/functions && npm install
$ cd /path/to/nuxt-firebase-pwa/src
$ npm run dev
Build Nuxt.js app.
$ cd /path/to/nuxt-firebase-pwa/src
$ npm run build
Copy assets and static files.
$ cd /path/to/nuxt-firebase-pwa
$ npm run setup
set up => copy items in 'functions/nuxt/dist/' to 'public/assets'
and copy items in 'src/static/*' to 'public/'
Create a Firebase Project using the Firebase Console.
Install Firebase CLI.
$ npm install -g firebase-tools
Login to Firebase.
$ firebase login
Edit .firebaserc
{
"projects": {
"default": "<your-firebase-project-id>"
}
}
$ npm run serve
$ npm run deploy
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/F9Uf/nuxt-firebase-ssr-auth.git
git push -u origin master