Skip to content

Commit

Permalink
Feature: Remove all license-related configs
Browse files Browse the repository at this point in the history
  • Loading branch information
vshatravenko committed Dec 9, 2019
1 parent 3ae8b86 commit a557a77
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 29 deletions.
33 changes: 9 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
# OpenDAX

OpenDAX is an open-source cloud-native multi-service platform for building a Blockchain/FinTech exchange of digital assets, cryptocurrency and security tokens.
You can get free license access to a starter React-powered frontend UI for OpenDAX at [openware.com](https://www.openware.com/)

## Getting started with OpenDAX

### 1. Get your License Key

Register a free user account at [openware.com](https://www.openware.com/) to get your OpenDAX license key for a domain name you control.
Save the domain and license key string.

### 2. Get a VM
### 1. Get a VM

Minimum VM requirements for OpenDAX:
* 8GB of RAM (12GB recommended)
Expand All @@ -19,22 +13,22 @@ Minimum VM requirements for OpenDAX:

A VM from any cloud provider like DigitalOcean, Vultr, GCP, AWS as well as any dedicated server with Ubuntu, Debian or Centos would work

### 3. Prepare the VM
### 2. Prepare the VM

#### 3.1 Create Unix user
#### 2.1 Create Unix user
SSH using root user, then create new user for the application
```bash
useradd -g users -s `which bash` -m app
```

#### 3.2 Install Docker and docker compose
#### 2.2 Install Docker and docker compose

We highly recommend using docker and compose from docker.com install guide instead of the system provided package, which would most likely be deprecated.

Docker follow instruction here: [docker](https://docs.docker.com/install/)
Docker compose follow steps: [docker compose](https://docs.docker.com/compose/install/)

#### 3.3 Install ruby in user app
#### 2.3 Install ruby in user app

##### 3.3.1 Change user using
```bash
Expand All @@ -54,7 +48,7 @@ cd opendax
rvm install .
```

### 4. Bundle install dependencies
### 3. Bundle install dependencies

```bash
bundle install
Expand All @@ -63,19 +57,10 @@ rake -T # To see if ruby and lib works

Using `rake -T` you can see all available commands, and can create new ones in `lib/tasks`

### 5. Paste you domain and the free license key you got at [openware.com](https://www.openware.com/)

Edit the file `config/app.yml`
Replace the license key in this block:
```yaml
license:
url: "https://www.openware.com/api/v2/tenko"
license_key: "PASTE-KEY-HERE"
```

### 6. Run everything
### 4. Run everything

#### 6.1 Configure your domain
#### 4.1 Configure your domain
If using a VM you can point your domain name to the VM ip address before this stage.
Recommended if you enabled SSL, for local development edit the `/etc/hosts`

Expand All @@ -85,7 +70,7 @@ Insert in file `/etc/hosts`
0.0.0.0 www.app.local
```

#### 6.2 Bring everything up
#### 4.2 Bring everything up

```bash
rake service:all
Expand Down
3 changes: 0 additions & 3 deletions config/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ render_protect: false
ssl:
enabled: false # Make sure to enable during deployment
email: "support@example.com"
license:
url: "https://www.openware.com/api/v2/tenko"
key: "PASTE-KEY-HERE"
images:
peatio: rubykube/peatio:2.3.43
barong: rubykube/barong:2.3.36
Expand Down
4 changes: 2 additions & 2 deletions templates/config/frontend/env.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ window.env = {
applogicUrl: '<%= ssl_helper('http') %>://<%= @config['app']['subdomain'] %>.<%= @config['app']['domain'] %>/api/v2/applogic',
rangerUrl: '<%= ssl_helper('ws') %>://<%= @config['app']['subdomain'] %>.<%= @config['app']['domain'] %>/api/v2/ranger',
arkeUrl: '<%= ssl_helper('http') %>://<%= @config['app']['subdomain'] %>.<%= @config['app']['domain'] %>/api/v2/arke',
tenkoUrl: '<%= @config['license']['url'] %>',
tenkoUrl: 'https://www.openware.com/api/v2/tenko',
},
minutesUntilAutoLogout: '35',
withCredentials: false,
Expand All @@ -15,5 +15,5 @@ window.env = {
},
rangerReconnectPeriod: '1',
msAlertDisplayTime: '5000',
licenseKey: '<%= @config['license']['key'] %>',
licenseKey: 'LICENSE-KEY',
};

0 comments on commit a557a77

Please sign in to comment.