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:
- Download this repo as zip file or clone this repo using your favorite Git client.
- Go to your Firebase project console and download your app's server credential and save it to your project folder.
- 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"
});
- Replace the "path/to/cert-file.json" with the path to your server credential file.
- Replace database url with your own app's database url.
- Open CMD/Terimal and do the following command:
npm install
- 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)