{"id":23128582,"url":"https://github.com/grunch/danta","last_synced_at":"2025-08-17T05:32:16.307Z","repository":{"id":46378192,"uuid":"513296116","full_name":"grunch/danta","owner":"grunch","description":"Simple Lightning Network events registration rust webapp ","archived":false,"fork":false,"pushed_at":"2023-11-07T18:37:39.000Z","size":22932,"stargazers_count":4,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-11-08T05:52:11.959Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grunch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-07-12T21:22:23.000Z","updated_at":"2023-11-08T05:52:11.960Z","dependencies_parsed_at":"2023-11-07T03:41:00.557Z","dependency_job_id":null,"html_url":"https://github.com/grunch/danta","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grunch%2Fdanta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grunch%2Fdanta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grunch%2Fdanta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grunch%2Fdanta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grunch","download_url":"https://codeload.github.com/grunch/danta/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230093226,"owners_count":18171802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-17T09:27:11.230Z","updated_at":"2024-12-17T09:27:11.838Z","avatar_url":"https://github.com/grunch.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Danta - Lightning Network event registration app\n\nSimple lightning event registration rust app, this app connects to a lnd node using gRPC.\n\n![Demo](demo.gif)\n\n## Requirements:\n\n0. You need Rust version 1.48 or higher to compile.\n1. You need to have LND 0.14.2, ideally v0.15.0-beta\n\n## Install\n\nClone the repository and then create a new `.env` file based on `.env-sample` file.\n\n```\n$ git clone https://github.com/grunch/danta.git\n$ cd danta\n$ cp .env-sample .env\n```\n\nTo connect with a lnd node we need to set 3 variables in the `.env` file .\n\n_LND_CERT_FILE:_ LND node TLS certificate file path, the default is `$HOME/.lnd/tls.cert` on the lnd node.\n\n_LND_MACAROON_FILE:_ Macaroon file path, the macaroon file contains permission for doing actions on the lnd node, for this app a good choice is to use the `invoice.macaroon` file, the default is `$HOME/.lnd/data/chain/bitcoin/mainnet/invoice.macaroon`.\n\n_LND_GRPC_HOST:_ IP address or domain name from the LND node, example: `192.168.0.2`.\n\n_LND_GRPC_PORT:_ LND node port to connect, example: `10009`.\n\n### Database\n\nThe data is saved in a sqlite db file named by default `data.db`, this file is saved on the root directory of the project and can be change just editing the env var `DATABASE_URL` on the `.env` file.\n\nBefore start building we need to initialize the database, for this we need to use `diesel_cli`:\n\n```\n$ cargo install diesel_cli --no-default-features --features sqlite\n```\n\nNow we can initialize our database:\n\n```\nDATABASE_URL=data.db diesel migration run\n```\n\nThis creates `data.db` in our project file.\n\n## Install dependencies\n\nTo compile on Ubuntu/Pop!\\_OS, you need to install some dependencies, run the following commands:\n\n```\n$ sudo apt update\n$ sudo apt install -y cmake build-essential libsqlite3-dev pkg-config libssl-dev\n```\n\n## Compile and execute it:\n\n```\n$ cargo build --release\n$ target/release/danta\n```\n\nGo to http://localhost:8000\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrunch%2Fdanta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrunch%2Fdanta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrunch%2Fdanta/lists"}