bors[bot]
ec8f8ebf81
807: Bump vergen from 5.1.18 to 5.2.0 r=thomaseizinger a=dependabot[bot] Bumps [vergen](https://github.com/rustyhorde/vergen) from 5.1.18 to 5.2.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/rustyhorde/vergen/releases">vergen's releases</a>.</em></p> <blockquote> <h2>v5.2.0</h2> <ul> <li>Bumped minor release due to breaking change in git config (removed copy to support new base path configuration)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
3 years ago | |
---|---|---|
.cargo | Introduce cargo aliases for running maker and taker in dev mode | 3 years ago |
.github | Introduce cargo aliases for running maker and taker in dev mode | 3 years ago |
daemon | Merge #849 | 3 years ago |
docs | Merge #807 #810 #820 #821 #822 #823 #832 #842 #843 | 3 years ago |
maker-frontend | Merge #837 | 3 years ago |
taker-frontend | Merge #807 #810 #820 #821 #822 #823 #832 #842 #843 | 3 years ago |
testnet | Move testnet seeds to `testnet` directory | 3 years ago |
.dockerignore | Provide dockerfile and build during release | 3 years ago |
.gitignore | Move testnet seeds to `testnet` directory | 3 years ago |
Cargo.lock | Merge #807 #810 #820 #821 #822 #823 #832 #842 #843 | 3 years ago |
Cargo.toml | Allow maker to control lock and commit transaction fee rate | 3 years ago |
Dockerfile | Dockerfile changes | 3 years ago |
README.md | Add info about using the embedded frontend into the README | 3 years ago |
bors.toml | Armv7 is totally outdated | 3 years ago |
clippy.toml | Ban use of `do_send` function via clippy | 3 years ago |
dprint.json | Add new taker-frontend and rename old to maker-frontend | 3 years ago |
rust-toolchain.toml | Upgrade to Rust 1.57 | 3 years ago |
start_all.sh | Introduce cargo aliases for running maker and taker in dev mode | 3 years ago |
README.md
Itchy Sats
CFD trading on Bitcoin.
Details coming soon.
Quickstart
All the components can be started at once by running the following script:
./start_all.sh
Note: Before first run, you need to run cd maker-frontend; yarn install; cd../taker-frontend; yarn install
command to ensure that all dependencies get
installed.
The script combines the logs from all binaries inside a single terminal so it might not be ideal for all cases, but it is convenient for quick regression testing.
Pressing Ctrl + c
once stops all the processes.
The script also enables backtraces by setting RUST_BACKTRACE=1
env variable.
Starting the maker and taker daemon
A working example of starting both daemons with all the required command-line parameters can be found here
The maker and taker frontend depend on the respective daemon running.
Starting the maker and taker frontend
We use a separate react projects for hosting taker and maker frontends.
Building the frontends
The latest version of the built frontends will be embedded by cargo
inside
their respective daemons and automatically served when the daemon starts.
Embedded frontend is served on ports 8000
and 8001
by default.
This means that it is highly recommended to build the frontend before the daemons.
Taker
cd taker-frontend
yarn install
yarn build
Maker
cd maker-frontend
yarn install
yarn build
Developing frontend code
If hot-reloading of the app is required, frontend can be started in development mode.
Development frontend is served on ports 3000
and 3001
by default.
Taker
cd taker-frontend
yarn install
yarn dev
Maker
cd maker-frontend
yarn install
yarn dev
Linting
To run eslint, use:
cd maker-frontend && yarn run eslint
cd taker-frontend && yarn run eslint