Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yzernik/squeakroad
Open source darknet market with lightning network payments
https://github.com/yzernik/squeakroad
bitcoin darknet-markets lightning-network rust
Last synced: 12 days ago
JSON representation
Open source darknet market with lightning network payments
- Host: GitHub
- URL: https://github.com/yzernik/squeakroad
- Owner: yzernik
- License: mit
- Created: 2022-03-12T23:42:10.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-03T15:54:48.000Z (over 1 year ago)
- Last Synced: 2024-10-12T20:43:46.014Z (27 days ago)
- Topics: bitcoin, darknet-markets, lightning-network, rust
- Language: Rust
- Homepage:
- Size: 1 MB
- Stars: 44
- Watchers: 2
- Forks: 11
- Open Issues: 49
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# squeakroad
[![GitHub release](https://img.shields.io/github/release/yzernik/squeakroad.svg)](https://github.com/yzernik/squeakroad/releases)
[![GitHub CI workflow](https://github.com/yzernik/squeakroad/actions/workflows/ci.yaml/badge.svg)](https://github.com/yzernik/squeakroad/actions/workflows/ci.yaml)Open source darknet market with lightning network payments and withdrawals.
## Installation
### Requirements
* an LND node
* Rust and Cargo
* openssl `apt install libssl-dev`
* gexiv2 `apt install libgexiv2-dev`
* compiler dependencies `apt install libprotobuf-dev protobuf-compiler cmake`### Step 1. Create the configuration
> Create a **config.toml** file and fill in the relevant sections to connect to your LND node:```
db_url="db.sqlite"
admin_username="admin"
admin_password="pass"
lnd_host="localhost"
lnd_port=10009
lnd_tls_cert_path="~/.lnd/tls.cert"
lnd_macaroon_path="~/.lnd/data/chain/bitcoin/mainnet/admin.macaroon"
```### Step 2. Start squeakroad:
```
cargo run
```Go to http://localhost:8000/ and use the username/password in **config.toml** to log in.
## Test
```
cargo test
```## Database Migrations
Use [sqlx-cli](https://crates.io/crates/sqlx-cli/).
`cargo install sqlx-cli`
`cargo sqlx migrate --source db/migrations add `
Then put your SQL changes in the new file.
`cargo sqlx migrate --source db/migrations run`
After running migrations, generate the schema for compile-time type-checking:
`cargo sqlx prepare --database-url sqlite3://db.sqlite`
Optional: create a `.env` with `DATABASE_URL=sqlite3://db.sqlite` to avoid passing `--database-url`
## Telegram
[Join our Telegram group!](https://t.me/squeakroad)
## License
Distributed under the MIT License. See [LICENSE file](LICENSE).