DFX Installation Guide

This chapter provides documentation about the DFX installation process.

Prerequisites

DFX runs on Unix based systems (Linux, MAC OS etc). First, you have to install these libraries and servers:

If you don't have installed GitHub SSH Key, you have to do two additional steps:

Important: after installing, you have to run Mongo and Redis servers.

Install DFX

DFX contains several main modules:

  • DFM - DreamFace Manager
  • DFX - DreamFace Server
  • DFC - DreamFace Compiler

You can install the whole product by installing DFM using the operational system command line. DFM will install other modules itself.

Steps to install DFX via command line:

  • Create folder where DFX will be installed: mkdir /var/lib/dreamface or sudo mkdir /var/lib/dreamface

  • Change folder owner to your account: sudo chown 'your_user_name': /var/lib/dreamface

  • Go to the product folder: cd /var/lib/dreamface

  • Clone the project from Git (more exactly, its DFM module): git clone https://github.com/InteractiveClouds/dfm.git

  • Go to the cloned project and install node modules: cd dfm && npm install

  • Create a symbolic link: sudo ln -s /var/lib/dreamface/dfm/index.js /usr/local/bin/dreamface

  • Clone services and create folders structure: dreamface install 50.50.50.50 (where 50.50.50.50 is your external server IP. If you do not specify this parameter, '127.0.0.1' will be use by default)

    • If dreamface command does not run, you can try another way: run back to back commands cd /var/lib/dreamface/dfm and node index.js install 50.50.50.50
  • Start DFX - run the command dreamface update or node index.js update (which internally runs grunt build && npm install in /var/lib/dreamface/dfc and /var/lib/dreamface/dfx folders)

Start using DFX

Right now, DFX Studio supports Chrome browser.

  • Open DFX Console using this URL: http://[localhost]:3000/console. Do not forget to replace localhost for your IP address. Port 3000 is your DFX Server port number. Default credentials for DFX Console are:

Login: sys

Password: admin

  • After login into DFX Console, you will be asked to change default credentials.
  • Next step is to create tenant to build your applications:

  • Then, open DFX Studio by clicking on "Open Studio" button near your tenant. Default credentials for your tenant (do not confuse with credentials to DFX console):

Login: admin

Password: the one that you provided when created tenant above.

  • Start creating your applications!

results matching ""

    No results matching ""