Sign inSign up

inteliquent/telerest-dashboard

By inteliquent

•Updated over 9 years ago

Automated build for the Telerest Dashboard.

Image
0

2.2K

inteliquent/telerest-dashboard repository overview

⁠Omni IQ Dashboard

⁠Docker Setup
  1. Pull the latest master branch from github:
git clone https://github.com/BetterVoice/telerest-dashboard.git
  1. cd into the repo:
cd telerest-dashboard
  1. Build the docker container:
docker build -t inteliquent/telerest-dashboard:latest .
  1. Run the docker image: (don't forget to set the proper API URL environment variable and put the correct path to your telerest-dashboard instance)
docker run --name dash -d -e "API_URL=http://192.168.35.88:8080" -p 80:80/tcp -p 443:443/tcp inteliquent/telerest-dashboard:latest
  1. Visit you-docker-container-url/dashboard/ in your browser to view the app!

  2. (bonus) If you want to enter the docker container after it's started use command:

docker exec -i -t dash /bin/bash
⁠Production Docker Setup

It's the same as above except your docker run command will be

docker run --name dash --net=dedicate --restart=always -p 80:80/tcp -p 443:443/tcp -v /home/lpratt/certs:/etc/nginx/certs -e "API_URL=https://api.inteliquent.com" -e "NGINX_SSL_ENABLED=True" -e "NGINX_CERT_PATH=/etc/nginx/certs/api.inteliquent.com.bundle" -e "NGINX_KEY_PATH=/etc/nginx/certs/api.inteliquent.com.key" -d inteliquent/telerest-dashboard:latest
⁠Regular Setup
  1. Git clone or download project and cd into root folder

  2. Install Node.js (for npm) using the installer: https://nodejs.org/⁠

  3. Install Grunt cli (will be replaced with Gulp in future versions) run code:

npm install -g grunt-cli
  1. Install package and javascript dependencies by running the following:
npm install
bower install
  1. Edit /src/js/main.js with your local telerest api url, example:
createConfig("http://192.168.38.42:8080");
  1. Use Grunt to compile and clean up:
grunt build:angular
  1. Start the app:
npm start
  1. Visit localhost:8000/src/ in your browser to view the app!
⁠Project Organization
telerest-dashboard
│
├───grunt - contains grunt scripts with certain functions
│   
└───src - main project files
    │
    ├───libs - contains libraries which are lazyloaded
    │
    ├───css - contains stylesheets
    │
    ├───fonts - fonts
    │   
    ├───img - images
    │
    └───js - javascript
        │
        ├───controllers - controllers for each view
        │
        ├───directives - built in theme directives
        │   
        ├───factories - each factory is used in multiple views and is our connection layer with the API
        │
        ├───filters - contains filters and useful functions for searching
        │
        ├───services - built in theme services
        │
        ├───app.js - main module for the project
        │
        ├───config.lazyload.js - each front-end library must be included here to be lazyloaded
        │
        └───config.router.sj - holds all the projects routes
    │
    ├───l10n - contains the beginning of a translation layer for when we're ready to serve multiple languages
    │
    └───tpl - contains all the templates (views) for the project, commonly shared pieces of views are in the blocks folder
⁠Have a question?

Contact Lemonlemons (Andrew Moe) if you have any questions about this project

Tag summary

Content type

Image

Digest

Size

458.4 MB

Last updated

over 9 years ago

docker pull inteliquent/telerest-dashboard