2024-05-09 10:19:41 +00:00
|
|
|
# SIGit DVM
|
2023-07-08 11:49:12 +00:00
|
|
|
|
2024-05-10 10:13:47 +00:00
|
|
|
Building on the great work of Pablo: https://github.com/pablof7z/nostr-data-vending-machine
|
2023-07-08 11:49:12 +00:00
|
|
|
|
|
|
|
# Supported Job Types
|
|
|
|
|
2024-05-09 10:20:15 +00:00
|
|
|
The following Jobs are supported by this DVM:
|
|
|
|
|
2024-05-10 10:13:47 +00:00
|
|
|
- Get OnNostrSince Block Height
|
2023-07-18 20:06:14 +00:00
|
|
|
|
2024-05-10 10:13:47 +00:00
|
|
|
- Send nPub get Block Height (from blockchain.info)
|
|
|
|
|
|
|
|
- More job types will be added in the future
|
2023-07-18 20:06:14 +00:00
|
|
|
|
|
|
|
# Demo video
|
|
|
|
|
|
|
|
https://www.youtube.com/watch?v=OJx6ExVTS7c
|
|
|
|
|
|
|
|
# License
|
|
|
|
|
|
|
|
MIT
|
2024-05-09 14:33:12 +00:00
|
|
|
|
|
|
|
# Start with PM2
|
2024-05-10 10:13:47 +00:00
|
|
|
|
|
|
|
```sh
|
|
|
|
npm i -g pm2
|
|
|
|
```
|
|
|
|
|
2024-05-09 14:33:12 +00:00
|
|
|
```sh
|
2024-05-10 10:13:47 +00:00
|
|
|
npm i -g pnpm
|
2024-05-09 14:33:12 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
```sh
|
2024-05-10 10:13:47 +00:00
|
|
|
pnpm i
|
|
|
|
```
|
|
|
|
|
|
|
|
```sh
|
|
|
|
pnpm run build
|
2024-05-09 14:33:12 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
```sh
|
|
|
|
pm2 start --name "Sigit-DVM" -- start
|
|
|
|
```
|
|
|
|
|
|
|
|
## Make PM2 auto start on reboot
|
|
|
|
|
|
|
|
```sh
|
|
|
|
pm2 save
|
|
|
|
```
|
|
|
|
|
|
|
|
```sh
|
|
|
|
pm2 startup
|
|
|
|
```
|
|
|
|
|
|
|
|
Copy/Paste given command by the pm2
|
|
|
|
|
|
|
|
Done
|
|
|
|
|
|
|
|
To remove it from startup
|
|
|
|
|
|
|
|
```sh
|
|
|
|
pm2 unstartup systemd
|
2024-05-10 10:13:47 +00:00
|
|
|
```
|