All Projects → wahengchang → nuxt-firebase-starter-kit

wahengchang / nuxt-firebase-starter-kit

Licence: other
No description, website, or topics provided.

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language

nuxt-firebase-starter-kit

Read more : blog

alt text

Setup Firebase keys

create env.sh in root directary, and setup your firebase key

# ./env.sh
echo "set FIREBASE_API_KEY"
export FIREBASE_API_KEY="foo-key"
echo "set FIREBASE_AUTH_DOMAIN"
export FIREBASE_AUTH_DOMAIN="foo.firebaseapp.com"
echo "set FIREBASE_DB_URL"
export FIREBASE_DB_URL="https://foo.firebaseio.com"
echo "set FIREBASE_PROJECT_ID"
export FIREBASE_PROJECT_ID="foo"
echo "set FIREBASE_MESSAGEING_ID"
export FIREBASE_MESSAGEING_ID="foo-id"
echo "set FIREBASE_APP_ID"
export FIREBASE_APP_ID="app-id"

then run

$ source env.sh

then run

$ npm run dev

Build Setup

# install dependencies
$ npm install # Or yarn install

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

# build for production and launch server
$ npm run build
$ npm start

# generate static project
$ npm run generate

Reference

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].