_____ _ _ _ ___
| |___ _ _ ___| |_ ___ ___ _ _ ___ ___ ___ ___ ___ _ _ ___ ___ ___| |_|_| _|_ _
| --| _| | | . | _| . | _| | | _| _| -_| | _| | |___| | . | _| | _| | |
|_____|_| |_ | _|_| |___|___|___|_| |_| |___|_|_|___|_ | |_|_|___|_| |_|_| |_ |
|___|_| |___| |___|
Cryptocurrency-notify is a notification tool designed to detect prices of blockchain tokens, with the aim of assisting individuals in achieving greater returns from the cryptocurrency market.
usage: cryptocurrency-notify [-h] --config CONFIG [--verbose]
options:
-h, --help Show this help message and exit
--config CONFIG Config path
--verbose Enable verbose mode
-
Clone code
git clone https://github.com/devcxl/cryptocurrency-notify.git
-
create a new virtual environment
python3 -m venv .env
-
activate
source .env/bin/activate
-
Installation dependencies
pip install -r requirements.txt
-
Build
bash build.sh
-
Install Binary
mv dist/main /usr/bin/cryptocurrency-notify
-
Create systemd configuration
sudo vim /etc/systemd/system/cryptocurrency-notify.service
-
Add context:
[Unit] Description=Cryptocurrency-notify After=network.target [Service] ExecStart=/usr/bin/cryptocurrency-notify --config /etc/cryptocurrency-notify/config.yaml Restart=always [Install] WantedBy=multi-user.target
-
Configuration
sudo vim /etc/cryptocurrency-notify/config.yaml
-
run in background
sudo systecmtl daemon-reload
sudo systemctl enable --now cryptocurrency-notify.service
sudo rm /etc/systemd/system/cryptocurrency-notify.service
sudo rm -r /etc/cryptocurrency-notify/
sudo rm /usr/bin/cryptocurrency-notify
-
Clone code
git clone https://github.com/devcxl/cryptocurrency-notify.git
-
build
docker build -t cryptocurrency-notify .
-
run
docker run -it --name cryptocurrency-notify -v ${PWD}/config/config.yaml:/etc/coin/config.yaml cryptocurrency-notify
-
check
docker log cryptocurrency-notify
2024-01-14 01:43:54,720 [INFO] daemon successful!