https://github.com/yszk0123/notebook
https://github.com/yszk0123/notebook
app firebase react typescript
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yszk0123/notebook
- Owner: yszk0123
- License: mit
- Created: 2018-11-20T14:44:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T17:58:04.000Z (over 3 years ago)
- Last Synced: 2023-03-23T02:37:51.591Z (over 3 years ago)
- Topics: app, firebase, react, typescript
- Language: TypeScript
- Homepage: https://practical-stallman-a663d6.netlify.com/
- Size: 18.2 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 41
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Notebook
# Develop
## Environment Variables
| name | description | example |
| --- | --- | --- |
| APP_BASE_URL | | /notebook |
| HASURA_ADMIN_SECRET | secret key for hasura graphql server | xxx |
| HASURA_GRAPHQL_HOST | | xxx.herokuapp.com |
| FIREBASE_API_KEY | | xxx |
| FIREBASE_PROJECT_ID | | xxx |
| FIREBASE_MESSAGING_SENDER_ID | | 123 |
| FIREBASE_APP_ID | | xxx:xxx:xxx:xxx |
| FACEBOOK_APP_ID | | xxx |
| EXPO_USERNAME | for CI | xxx |
| EXPO_CLI_PASSWORD | for CI | xxx |
## Setup
```bash
# Setup firebase
$ yarn global add firebase-tools
$ firebase login
# Install packages
$ yarn install
```
## Develop
```sh
$ yarn install
$ yarn start
```
## Deploy
```sh
$ yarn deploy
$ open https://yszk0123.github.io/notebook
```
## Update GraphQL Schema
```bash
$ yarn global add graphqurl
$ gq https://yszk0123-notebook.herokuapp.com/v1/graphql -H "X-Hasura-Admin-Secret: $HASURA_ADMIN_SECRET" --introspect > schema.graphql
```