https://github.com/mkulak/nayok
https://github.com/mkulak/nayok
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mkulak/nayok
- Owner: mkulak
- Created: 2020-05-18T20:23:00.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-01T22:07:54.000Z (almost 5 years ago)
- Last Synced: 2025-02-16T08:11:50.452Z (4 months ago)
- Language: Rust
- Size: 77.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Nayok
=
Nayok is server that allows to receive notifications and replay them later.
It has 2 endpoints:
1. `/notifications`: saves request into local sqlite db giving back "OK"
with http code 200 to the caller.
2. `/notification-results`: returns list of received notifications in json formatBuild production
=
```shell script
export TARGET_CC="x86_64-unknown-linux-gnu-gcc"
export TARGET_CFLAGS="-I $(pwd)/usr/include/x86_64-linux-gnu -isystem $(pwd)/usr/include"
export LD_LIBRARY_PATH="$(pwd)/usr/lib/x86_64-linux-gnu;$(pwd)/lib/x86_64-linux-gnu"
export OPENSSL_DIR="$(pwd)/usr/"
export OPENSSL_LIB_DIR="$(pwd)/usr/lib/x86_64-linux-gnu/"cargo build --target=x86_64-unknown-linux-musl --bin=nayok --release
```
Manual deploy
=
```shell script
gcloud compute ssh instance-1
sudo systemctl stop nayok.service
gcloud compute scp target/x86_64-unknown-linux-musl/release/nayok instance-1:~/nayok
sudo systemctl start nayok.service
```