https://github.com/uhooi/uhooipicbook-firebase
Uhooi's character book.
https://github.com/uhooi/uhooipicbook-firebase
firebase firestore typescript uhooi
Last synced: 2 months ago
JSON representation
Uhooi's character book.
- Host: GitHub
- URL: https://github.com/uhooi/uhooipicbook-firebase
- Owner: uhooi
- License: mit
- Created: 2020-05-04T05:42:37.000Z (about 6 years ago)
- Default Branch: develop
- Last Pushed: 2023-01-10T02:42:19.000Z (over 3 years ago)
- Last Synced: 2025-04-07T13:46:41.303Z (about 1 year ago)
- Topics: firebase, firestore, typescript, uhooi
- Language: TypeScript
- Homepage:
- Size: 221 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UhooiPicBook-Firebase
[](https://github.com/uhooi/UhooiPicBook-Firebase/actions?query=workflow%3ACI)
[](https://github.com/uhooi/UhooiPicBook-Firebase/blob/master/LICENSE)
[](https://twitter.com/the_uhooi)

Testing Firestore security rules for Uhooi's character book.
## Environment
- Node.js: v12.14.0
- npm: 6.13.4
## Setup
1. Clone the project.
```
$ git clone https://github.com/uhooi/UhooiPicBook-Firebase.git
$ cd UhooiPicBook-Firebase
```
2. Install Firebase CLI.
```
$ npm install -g firebase-tools
```
3. Install the emulator.
```
$ firebase setup:emulators:firestore
```
4. Install packages managed by npm.
```
$ npm install
```
## Testing
1. Run firebase login to authenticate the CLI.
```
$ firebase login:ci
$ export FIREBASE_TOKEN={generated Firebase token}
```
2. Export envirionment variables.
```
$ export FIREBASE_DATABASE_EMULATOR_HOST=localhost:9000
$ export FIRESTORE_EMULATOR_HOST=localhost:8080
```
3. Run `npm test` .
## References
- https://firebase.google.com/docs/cli/
- https://firebase.google.com/docs/firestore/security/test-rules-emulator
- https://firebase.google.com/docs/firestore/security/rules-structure
- https://github.com/firebase/quickstart-nodejs/tree/master/firestore-emulator/typescript-quickstart
- https://github.com/mogaming217/youtube-simple-todo-sample
- https://techlife.cookpad.com/entry/2018/11/05/143000