ZOYKU火線榜

antonybudianto/express-firebase技術文件

:fire: Express starter for your Firebase applications

目錄大綱 (TOC) (2 章節)▾
多語言回退提示:當前倉庫原作者暫未發布在地化文件,已為您無縫切換至官方英文原版(English),排版及程式碼實例完整保真。
npm i express-firebase

express-firebase

Simple Firebase Admin Server using NodeJS.

You used Firebase for auth, realtime DB, and all. Finally you need your own server to integrate with 3rd party services, or maybe custom token, or you need server-side operations.

Have existing express server? Try out Express Firebase Middleware

How to use

  1. Clone this repo and change directory to the cloned folder

  2. Install the packages

    npm install
  3. You need to download your Firebase Service Account json file, please follow the official instruction.

    Put the file at project root.

    ⚠️ Always make sure the JSON file is git-ignored!

  4. Copy .env.example file and rename it to .env at project root.

    Change the dummy FIREBASE_DATABASE_URL value with your Firebase project databaseURL, you can find it on your Firebase Console

  5. Then start the server

    npm start
  6. It should log successfully, and you can start using Firebase Admin SDK

  7. For further reading, please visit Express Firebase Middleware repo

License

MIT

文件鏡像歸檔自 GitHub 官方源路徑 · 造訪原專案 GitHub
最後同步快照:2026-11-09