Skip to content

memory-lovers/simple-firestore-admin

Repository files navigation

Simple Firestore Admin

Simple Firestore Admin Console. This is a simple management console that can be used on a local PC.

Since this use Firebase Admin SDK, you can use it just by preparing a private key file.
You can use it without changing any special security rules.

DEMO

Feature

  1. select collection: collection().where().orderBy()
  2. update document: doc().update()
  3. delete document: doc().delete()

How To Use

Install

$ git clone [email protected]:memory-lovers/simple-firestore-admin.git

Setup

  1. create .env file
$ cd simple-firestore-admin

$ cp env_sample .env
  1. place your private key

please place your private key; ex ./credential.json, same location as .env

if you don't have private key, you can generate form Firebase Console.
Plese see Firebase Official Document.

  1. setting path of your private key into .env
  # Copy this file with file name '.env'

  ## ex. CREDENTIAL_PATH=./credential.json
- CREDENTIAL_PATH=YOUR_CREDENTIAL_PATH
+ CREDENTIAL_PATH=./credential.json

Lanch

install package and build, lanch server

$ npm install

$ npm run build

$ npm run start

you can access http:https://localhost:3000.

Licence

MIT

Author

Memory Lovers (GitHub / WebSite / Twitter) kira_puka (Twitter)