Deploy your own crypto trading platform [OpenDAX] on Digital Ocean in 15 minutes!
Welcome, everyone! In this tutorial, we will deploy and start up a crypto trading platform from scratch using OpenDAX on Digital Ocean.
OpenDAX is an open-source cloud-native multi-service platform for building a Blockchain/FinTech exchange of digital assets, cryptocurrency and security tokens. The Crypto exchange software is developed at Openware.
It’s also an opensource project, so your own exchange could be started in 15 minutes, in 4 steps for $0*! How awesome is that? I think it’s amazing, so let’s get into it.
* there is no payment required, Digital Ocean gives free $50 credit for 30 days, at least for now.
1. Register on Digital Ocean
You can either register a new account or sign in with Google or Github.
After signing in, set up the billing account
After you’ve set up Billing, just add some information about your project and we’re ready to go.
Awesome, easy as that we’ve accomplished the first step and now ready to deploy!
2. Create a Droplet
Let’s click on Create and deploy a standard Debian-based droplet.
Also add a 100Gb block storage, formatted in Ext4 and add an SSH key to be able to connect to your Droplet.
Now our Droplet is ready and has a public IP assigned to it.
3. Setup Droplet and clone OpenDAX
NOTE: Set up the DNS record, before proceeding to this step. You can use any DNS provider available to you.
Now, SSH to your droplet. Since we’ve added an SSH key, we can SSH with root.
Prior to this tutorial I’ve prepared a script that will set up a docker-compose and ruby environment so that we can start immediately. So run the following command in your VM’s terminal
curl https://gist.githubusercontent.com/alinetskyi/cfc95dbce01d9452d93726e9157e89a1/raw/6c2a60e683e57a07b0b549ad1838d11bb4805c01/setup.sh | bash
Now our VM is ready and we can clone OpenDAX:
git clone https://github.com/openware/opendax.git
cd opendax
bundle install
4. Configure the installation and start it up
To configure the installation open the main configuration file config/app.yml
# Configure domain and subdomain
app:
name: "OpenDAX"
domain: "openware.com"
subdomain: "testdeploy"
render_protect: false
# Make sure to enable during deployment, SSL is managed by let's encrypt
ssl:
enabled: false
email: "support@example.com"
# These images are the stable ones, so better keep as it is
images:
peatio: rubykube/peatio:2.3.43
barong: rubykube/barong:2.3.36
frontend: quay.io/openware/baseapp:2.3.20
tower: quay.io/openware/tower-lite:2.3.130
postmaster: quay.io/openware/postmaster:2.3.5
arke_proxy:
enabled: false
# Used for local development
vendor:
frontend: git@github.com:openware/baseapp.git
vault:
mode: development
token: changeme
# Storage configuration for storing KYC documents
storage:
provider: "Google"
bucketName: "opendax-barong-docs-bucket"
accessKey: "**********"
secretKey: "**********"
# Twilio configuration for phone verification
twilio:
phone_number: "+15005550000"
account_sid: "changeme"
auth_token: "changeme"
# Recaptcha configuration, also can be disabled (none)
recaptcha:
type: "none"
siteKey: "changeme"
secretKey: "changeme"
# Sendgrid configuration for email delivery
smtp:
host: smtp.sendgrid.net
port: 2525
user: apikey
password: changeme
sender_email: noreply@postmaster.com
sender_name: Postmaster
# Wallets configuration (DOESN'T NEED TO BE CHANGED)
wallets:
- kind: deposit
address: "changeme"
max_balance: 0.0
secret: changeme
- kind: hot
address: "changeme"
max_balance: 100.0
secret: changeme
- kind: warm
address: "changeme"
max_balance: 1000.0
secret: changeme
# Terraform configuration for GCP deployment (DOESN'T NEED TO BE CHANGED)
terraform:
credentials: "~/safe/opendax.json"
project: "example-opendax"
region: "europe-west4"
zone: "europe-west4-a"
instance_name: "opendax-cloud"
machine_type: "n1-standard-4"
image: "debian-cloud/debian-9"
After all the configuration is in place, we’re ready to FIRE IT UP!
It’s as easy as running a simple command:
rake service:all
This command will take a while to execute since every image has to be pulled and started up, but once everything is up and running, we’ll be able to see this
A fully functional crypto trading platform in 15 minutes, following 4 simple steps. In the next tutorial, we’ll customize the frontend page with our own logo to make it more personal.
Stay tuned, leave your feedback and don’t forget to follow us on:
[LinkedIn]: https://www.linkedin.com/company/openware-com/
[Youtube]: https://www.youtube.com/channel/UCGrRNy-EpI67ivdAL5z4JIg
[Github]: https://github.com/openware
[Telegram]: https://t.me/openware