https://github.com/firebase/snippets-web
Web snippets for firebase.google.com
https://github.com/firebase/snippets-web
Last synced: 12 months ago
JSON representation
Web snippets for firebase.google.com
- Host: GitHub
- URL: https://github.com/firebase/snippets-web
- Owner: firebase
- License: apache-2.0
- Created: 2017-06-27T21:41:51.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2025-05-07T08:48:17.000Z (12 months ago)
- Last Synced: 2025-05-07T09:45:08.848Z (12 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.1 MB
- Stars: 771
- Watchers: 98
- Forks: 254
- Open Issues: 47
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Firebase Web Snippets
This repository holds code snippets used in Web documentation
on [firebase.google.com](https://firebase.google.com/docs/).
These snippets are part of our documentation and best read in the context of a documentation page rather than used directly. If you're looking to get started with the Firebase Web SDK the best place to start is [quickstart-js](https://github.com/firebase/quickstart-js).
## Example
Consider this page:
https://firebase.google.com/docs/database/web/lists-of-data
Each snippet in the page is dynamically included from the source in this repository, in this case mostly from this file:
https://github.com/firebase/snippets-web/blob/master/database/lists-of-data.js
Each snippet has a "region tag" which is defined by `// [START tag]` and `// [END tag]` comments. The code between the tags can be included in our documentation. Keeping the code on GitHub, rather than hard-coded into the HTML of our documentation, allows us to ensure the code is correct and up to date.
## Contributing
We love contributions! See [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines.
## Build Status
[![Actions Status][gh-actions-badge]][gh-actions]
[gh-actions]: https://github.com/firebase/snippets-web/actions
[gh-actions-badge]: https://github.com/firebase/snippets-web/workflows/CI%20Tests/badge.svg