Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uhooi/uhooipicbook-firebase
Uhooi's character book.
https://github.com/uhooi/uhooipicbook-firebase
firebase firestore typescript uhooi
Last synced: 17 days 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 (over 4 years ago)
- Default Branch: develop
- Last Pushed: 2023-01-10T02:42:19.000Z (almost 2 years ago)
- Last Synced: 2023-03-06T00:10:39.792Z (over 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/workflows/CI/badge.svg)](https://github.com/uhooi/UhooiPicBook-Firebase/actions?query=workflow%3ACI)
[![License](https://img.shields.io/github/license/uhooi/UhooiPicBook-Firebase)](https://github.com/uhooi/UhooiPicBook-Firebase/blob/master/LICENSE)
[![Twitter](https://img.shields.io/twitter/url?style=social&url=https%3A%2F%2Ftwitter.com%2Fthe_uhooi)](https://twitter.com/the_uhooi)![logo](./docs/logo.png)
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