Firebase project with Nuxt.js
You need nodejs with npm (LTS version recommended)
-
set projectId in server/config.js
-
get service accounts key
- go to firebase project console
- go to "Project Settings -> Service Accounts"
- generate key, rename and place to root of project
-
enable cloud firestore with locked access
# install dependencies
$ npm install
# serve with hot reload at localhost:8080
$ npm run dev
# craft svg icons (run once before npm run dev)
$ npm run icons
# build for production and launch server
$ npm run build
$ npm startFor detailed explanation on how things work, checkout the Nuxt.js docs and Firebase docs.