UNPKG

2.86 kBMarkdownView Raw
1[![Build Status](https://github.com/firebase/firebase-admin-node/workflows/Continuous%20Integration/badge.svg)](https://github.com/firebase/firebase-admin-node/actions)
2
3# Firebase Admin Node.js SDK
4
5
6## Table of Contents
7
8 * [Overview](#overview)
9 * [Installation](#installation)
10 * [Contributing](#contributing)
11 * [Documentation](#documentation)
12 * [Supported Environments](#supported-environments)
13 * [Acknowledgments](#acknowledgments)
14 * [License](#license)
15
16
17## Overview
18
19[Firebase](https://firebase.google.com) provides the tools and infrastructure
20you need to develop your app, grow your user base, and earn money. The Firebase
21Admin Node.js SDK enables access to Firebase services from privileged environments
22(such as servers or cloud) in Node.js.
23
24For more information, visit the
25[Firebase Admin SDK setup guide](https://firebase.google.com/docs/admin/setup/).
26
27
28## Installation
29
30The Firebase Admin Node.js SDK is available on npm as `firebase-admin`:
31
32```bash
33$ npm install --save firebase-admin
34```
35
36To use the module in your application, `require` it from any JavaScript file:
37
38```js
39const { initializeApp } = require("firebase-admin/app");
40
41initializeApp();
42```
43
44If you are using ES2015, you can `import` the module instead:
45
46```js
47import { initializeApp } from "firebase-admin/app";
48
49initializeApp();
50```
51
52
53## Contributing
54
55Please refer to the [CONTRIBUTING page](./CONTRIBUTING.md) for more information
56about how you can contribute to this project. We welcome bug reports, feature
57requests, code review feedback, and also pull requests.
58
59
60## Supported Environments
61
62We support Node.js 12 and higher.
63
64Please also note that the Admin SDK should only
65be used in server-side/back-end environments controlled by the app developer.
66This includes most server and serverless platforms (both on-premise and in
67the cloud). It is not recommended to use the Admin SDK in client-side
68environments.
69
70
71## Documentation
72
73* [Setup Guide](https://firebase.google.com/docs/admin/setup/)
74* [Database Guide](https://firebase.google.com/docs/database/admin/start/)
75* [Authentication Guide](https://firebase.google.com/docs/auth/admin/)
76* [Cloud Messaging Guide](https://firebase.google.com/docs/cloud-messaging/admin/)
77* [API Reference](https://firebase.google.com/docs/reference/admin/node/)
78* [Release Notes](https://firebase.google.com/support/release-notes/admin/node/)
79
80
81## Acknowledgments
82
83Thanks to the team at [Casetext](https://casetext.com/) for transferring
84ownership of the `firebase-admin` npm module over to the Firebase team
85and for their longtime use and support of the Firebase platform.
86
87
88## License
89
90Firebase Admin Node.js SDK is licensed under the
91[Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0).
92
93Your use of Firebase is governed by the
94[Terms of Service for Firebase Services](https://firebase.google.com/terms/).