Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aoirint/harmonica-hasura
Harmonica: Arduino環境センサデータベースサーバ(Hasura GraphQL Engine)
https://github.com/aoirint/harmonica-hasura
Last synced: about 1 month ago
JSON representation
Harmonica: Arduino環境センサデータベースサーバ(Hasura GraphQL Engine)
- Host: GitHub
- URL: https://github.com/aoirint/harmonica-hasura
- Owner: aoirint
- License: mit
- Created: 2022-03-17T22:26:13.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-21T16:12:05.000Z (about 1 year ago)
- Last Synced: 2023-12-21T19:02:26.673Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Harmonica Hasura
## Python Utility
### Create JWT Token
```shell
python3 -m venv venv# Linux, macOS
source venv/bin/activate
# Windows
source venv/Scripts/activatepip3 install -r scripts/requirements.txt
python3 scripts/create_token.py --user_id 1 --role sensor
python3 scripts/create_token.py --user_id 2 --role client
```### Generate requirements.txt
```shell
pip3 install pip-toolspip-compile scripts/requirements.in
```## Maintenance
### Update database structure
```shell
# On development machine,
docker-compose up -d
hasura console --project ./hasura --endpoint=http://127.0.0.1:8080/ --admin-secret myadminsecretkeygit add .
git commit
git push# On server,
git pull
docker-compose up -d --force-recreate
```