Admin console manual installation

Overview

It might worth running DeviceHive Admin panel manually if you want to customize it for your own purposes. Below you can find detailed instructions on that.

Prerequisites

Configure Admin console source code

  • git clone https://github.com/devicehive/devicehive-admin-console.git
  • cd devicehive-admin-console/scripts/
  • Update config.js file with your values, for example:
restEndpoint: '{DH_HOST}:8080/dh/rest'
rootUrl: '/'
authRestEndpoint: '{DH_HOST}:8090/dh/rest'

Configure Nginx

  • Install Nginx using official instructions.
  • Make changes in nginx config file (/usr/local/etc/nginx/nginx.conf or similar)
events { worker_connections 60000; }

http {

    tcp_nodelay on;
    tcp_nopush on;

    include /usr/local/etc/nginx/mime.types;
    default_type  application/octet-stream;
    gzip              on;
    gzip_http_version 1.0;
    gzip_proxied      any;
    gzip_min_length   500;
    gzip_disable      "MSIE [1-6]\.";
    gzip_types        text/plain text/xml text/css
                      text/comma-separated-values
                      text/javascript
                      application/x-javascript
                      application/atom+xml;

    server {
        listen       8081;
        port_in_redirect off;
        location / {
            sendfile on;
            root {PATH_TO_ADMIN_CONSOLE};
            index index.html;
        }
    }
}

Run

Start nginx and discover DeivceHive Admin console at
http://localhost:8081

Default admin user credentials:

login = dhadmin
password = dhadmin_#911

Enjoy!