Set up a local development environment for COMIT apps with one command.
If you have any question please reach out to the team in our Gitter chat!
Install docker through your package manager. Make sure the unix-socket of the docker daemon is accessible.
Windows users have the choice between Docker Toolbox (the "old" docker) and Docker for Windows (the "new" docker). Docker for Windows requires Windows 10 Pro, whereas Docker Toolbox also works on older versions of Windows and Windows 10 Home.
Install Docker Toolbox and start the virtual machine.
Double check that the environment variables DOCKER_HOST
, DOCKER_CERT_PATH
and DOCKER_TLS_VERIFY
have been set.
To use create-comit-app with Docker for Windows please follow these steps:
- Set the
DOCKER_HOST
variable to the docker daemon endpoint. You can find that in the docker control panel, should be something liketcp://127.0.0.1:2375
. - Disable the TLS verification of the docker daemon endpoint: In your docker control panel: Settings > General > Expose daemon on tcp... without TLS
Install them either from the website or through your package manager.
yarn create comit-app <your-app-name>
,cd <your-app-name>
,yarn install
andyarn start-env
to start blockchain and COMIT nodes,- Run the btc-eth example (in separate terminals for the taker and maker):
- Navigate to the separate-apps example app directory
cd ./examples/btc_eth
, yarn install
to install dependencies,yarn run maker
to run the maker app,yarn run taker
to run the taker app,- Follow the steps be hitting
Return
to complete the swap.
- Navigate to the separate-apps example app directory
You can find additional examples in the examples directory that is created as part of step 1.
Important: You don't have to follow this section, the above section is actually sufficient.
- Install Docker,
- Install Rust:
curl https://sh.rustup.rs -sSf | sh
, - Checkout the repo:
git clone https://github.com/comit-network/create-comit-app/; cd create-comit-app
, - Build and install:
make install
.