rida1148 / firebase-admin-sdk-user-management

Firebase Admin SDK RESTful API built with Node.js and Express.js to bridge between the connection using RESTful client.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

firebase-admin-sdk-user-management

Firebase Admin SDK RESTful API built with Node.js and Express.js to bridge between the connection using RESTful client.

I built this API to bridge between Firebase Admin SDK for managing Firebase Authentication Users via RESTful client, due to the extended capability of Node.js version of the SDK (other than managing Storage and Realtime Database).

Installation:

  1. Download this repo as zip file or clone this repo using your favorite Git client.
  2. Go to your Firebase project console and download your app's server credential and save it to your project folder.
  3. Open userRouter.js file in the routes directory. And find the following codes:
admin.initializeApp({
  credential: admin.credential.cert("path/to/cert-file.json"),
databaseURL: "https://yourapphere.firebaseio.com"
});
  1. Replace the "path/to/cert-file.json" with the path to your server credential file.
  2. Replace database url with your own app's database url.
  3. Open CMD/Terimal and do the following command:
npm install
  1. You can now test this API using your favorite RESTful client like Postman or Advance REST client. (the default url is http://localhost:3000/users)

About

Firebase Admin SDK RESTful API built with Node.js and Express.js to bridge between the connection using RESTful client.


Languages

Language:JavaScript 100.0%