Home

Awesome

Mostro Web

Super early version of a web client for the Mostro P2P System.

This project is a web interface that facilitates peer-to-peer bitcoin trading over the lightning network ⚡️ using nostr 🦩. The lightning network is a layer 2 scaling solution for bitcoin that enables fast and low-cost transactions.

Configuration - (Dev only 🧑‍💻)

Create a .env file with these 3 environment variable defined:

RELAYS=<comma-separated-list-of-relay-urls>
MOSTRO_PUB_KEY=<public-key-of-your-mostro-instance>
SECRET_KEY=<the-user-secret-key>

Prerequisites

Polar

Mostro

Mostro Web

You're now ready to go.

With docker and polar already running then do...

  1. In mostro folder
    $ ./init_db.sh
    $ cargo run
    $ cd relay
    $ docker compose up -d
    
  2. In mostro-web folder
    $ yarn dev
    

That's it! 🎉

Build Setup

# install dependencies
$ npm install

# Production build and version generation
# There's no need to run this every time, but run this at least once 
# before running `npm run dev`
$ npm run build

# serve with hot reload at localhost:3000
$ npm run dev

# build for production and launch server
$ npm run build
$ npm run start

# generate static project
$ npm run generate

For detailed explanation on how things work, check out the documentation.

Features

License

This project is licensed under the MIT License 📜. See the LICENSE file for more information.