This repo contains a Docker application which includes the web server, cron-jobs, unified exchange API, and trading engine.
You will also need to clone and install the Node.js powered COINCUBE - Front for the UI.
In order to get up and running with this repo:
Make sure you have git installed locally.
git clone https://github.com/coincubellc/back.git
This repo contains submodules which need to be pulled down before you will be able to run the application.
git submodule init
git submodule update
git submodule update --recursive --remote
Git Submodule Tutorial #1
Git Submodule Tutorial #2
- Visit Coin Market Cap and signup for their free Basic API.
- Paste the API key into lines 46 and 72 in
docker-compose.yml
. The key should be a string:CMC_API_KEY: 'your_CMC_API_key_here'
. - Save
docker-compose.yml
.
You'll need to securely generated a base64 encoded RSA Private key. This will be used to encrypt your API keys and other sensitive data in the database.
- From inside of the
back
folder, generate a new seedpython generate_vault_seed.py
which will generate a new seed. - Paste the entire encoded key except for the preceding 'b' as a string on lines 18 and 113 of
docker-compose.yml
- These two lines should look something like:
VAULT_SEED: 'LS0tLS1CRUdJTiBSU0......TVV6UWh3PT0KLS0tLS1FTkQgUlNBIFBSSVZBVEUgS0VZLS0tLS0='
- Save
docker-compose.yml
.
You will need Docker.
Build the Docker container(s):
docker-compose build
Run the Docker container(s):
docker-compose up
The first time you run docker-compose up
you will need to wait for the database to be populated. This should take 10-15 minutes.
Find "CONTAINER ID": docker ps
Shell into container: docker exec -it "CONTAINER ID" bash
(i.e. docker exec -it 78e539ca25be bash
)
docker logs -f "CONTAINER ID"