Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danpurdy/firebase-firestore-rule-testing-demo
A Firebase Firestore demo repo for testing Firestore rules
https://github.com/danpurdy/firebase-firestore-rule-testing-demo
Last synced: 28 days ago
JSON representation
A Firebase Firestore demo repo for testing Firestore rules
- Host: GitHub
- URL: https://github.com/danpurdy/firebase-firestore-rule-testing-demo
- Owner: DanPurdy
- License: mit
- Created: 2020-12-30T15:47:52.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-05T18:38:55.000Z (almost 2 years ago)
- Last Synced: 2024-10-31T16:02:31.403Z (3 months ago)
- Language: JavaScript
- Size: 584 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![CircleCI](https://circleci.com/gh/DanPurdy/firebase-firestore-rule-testing-demo.svg?style=shield)](https://circleci.com/gh/DanPurdy/firebase-firestore-rule-testing-demo)
# firebase-firestore-testing-demo
A Firebase Firestore demo repo for testing Firestore rules
The companion for the Firebase Cloud Firestore security rules article at [dpurdy.me](https://dpurdy.me/blog)
Part 1 - [Firebase Cloud Firestore security rules - Part one - Writing the rules](https://dpurdy.me/blog/firebase-cloud-firestore-security-rules/)
Part 2 - [Firebase Cloud Firestore security rules - Part two - unit testing](https://dpurdy.me/blog/firebase-cloud-firestore-security-rules-part-two-unit-testing/)
## Setup and run
If you don't have the firebase CLI setup you'll need to install it see the [Firebase CLI docs](https://firebase.google.com/docs/cli) or just install globally with npm using
```
npm install -g firebase-tools
```then install the node modules
```
npm i
```You can then run the tests with
```
npm test
```