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.
 
 
Philipp Hoenisch 95713fc4cd
Add table for rendering CFDs
3 years ago
.cargo Build CI for armv7 3 years ago
.github Merge pull request #43 from comit-network/dependabot/github_actions/dprint/check-2.0 3 years ago
cfd_protocol Merge pull request #100 from comit-network/collaborative-settlement 3 years ago
daemon Replace negative .gitignores with build script 3 years ago
docs Rename TakeRequest to Order 3 years ago
frontend Add table for rendering CFDs 3 years ago
.gitignore Add database and seed files to .gitignore 3 years ago
Cargo.lock Merge pull request #113 from comit-network/bitmex-price-feed 3 years ago
Cargo.toml Password protect the maker's routes 3 years ago
README.md Remove hardcoded absolute URLs from the frontend source code 3 years ago
dprint.json Have dprint format TypeScript and JavaScript files 3 years ago
rust-toolchain.toml Build CI for armv7 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. However, the development environment still needs to be start twice! Which frontend to start is configured via the APP environment variable.

cd frontend;
APP=taker yarn dev
APP=maker 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