You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Daniel Karzel 1b792751cb
Add script for preparing the DB for convenience
3 years ago
.github Add CLIs to maker and taker daemon and make things configurable 3 years ago
cfd_protocol Rename offer to order. Everywhere!!! 3 years ago
daemon Add script for preparing the DB for convenience 3 years ago
docs Rename offer to order. Everywhere!!! 3 years ago
frontend Rename offer to order. Everywhere!!! 3 years ago
.gitignore Initial daemon and frontend for taker and maker 3 years ago
Cargo.lock Add CLIs to maker and taker daemon and make things configurable 3 years ago
Cargo.toml Initial daemon and frontend for taker and maker 3 years ago
README.md Rename offer to order. Everywhere!!! 3 years ago
dprint.json Integrate CFD protocol into the maker and taker 3 years ago

README.md

Project Hermes

CFD trading on Bitcoin.

Details coming soon.

Starting the maker and taker daemon

The maker and taker frontend depend on the respective daemon running.

At the moment the maker daemon has to be started first:

cargo run --bin maker

Once the maker is started you can start the taker:

cargo run --bin taker

Upon startup the taker daemon will connect to the (hardcoded) maker and retrieve the current order.

Note: The sqlite databases for maker and taker are currently created in the project root.

Starting the maker and taker frontend

We use a single react project for hosting both the taker and the maker frontends.

To start it in development mode:

cd frontend && yarn dev

Bundling the web frontend and serving it from the respective daemon is yet to be configured. At the moment you will need a browser extension to allow CORS headers like CORS Everywhere (Firefox Extension) to use the frontends.

Linting

To run eslint, use:

cd frontend && yarn run eslint