项目
在 GitHub 查看
potato4d/nuxt-firebase-sns-example
关于
Nuxt v2 与 Firebase 示例,包含 Hosting、通过 Functions 实现的服务端渲染、Firestore,以及用于社交网络的 Google Auth。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Nuxt & Firebase(Hosting and Functions SSR), Firestore, Google Auth SNS Example
Requirements
Need the following environment variables.

export APIKEY=
export AUTHDOMAIN=
export DATABASEURL=
export PROJECTID=
export STORAGEBUCKET=
export MESSAGINGSENDERID=
export APPID=
recommendation: direnv/direnv
Build Setup
# install dependencies
$ yarn
# serve with hot reload at localhost:3000
$ yarn dev
# build for production and launch server
$ yarn build
$ yarn start
Deploy to Firebase
This application can also be launched with the normal Node.js application. However, by using Firebase Hosting and Firebase Functions, it can be used efficiently in a serverless environment.
setup project
$ yarn firebase init
setup env
firebase functions:config:set environment.apikey=""
firebase functions:config:set environment.authdomain=""
firebase functions:config:set environment.databaseurl=""
firebase functions:config:set environment.projectid=""
firebase functions:config:set environment.storagebucket=""
firebase functions:config:set environment.messagingsenderid=""
firebase functions:config:set environment.appid=""
deploy
$ yarn deploy
探索相关项目
加载中…