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: "firstname.lastname@example.org" # 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: email@example.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: firstname.lastname@example.org 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:
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.