Giter VIP home page Giter VIP logo

edge-reports-server's Introduction

edge-reports-server

Reporting tools and GUI for partner revenue share

Installation

# Install Yarn

    https://linuxize.com/post/how-to-install-yarn-on-ubuntu-18-04/

# Install Node

    curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh
    sudo bash nodesource_setup.sh

# Run Yarn

    yarn

# Install CouchDB v3.1

    sudo apt-get install -y apt-transport-https gnupg ca-certificates
    echo "deb https://apache.bintray.com/couchdb-deb bionic main" \
    | sudo tee -a /etc/apt/sources.list.d/couchdb.list

    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8756C4F765C9AC3CB6B85D62379CE192D401AB61
    sudo apt update
    sudo apt-get install couchdb=3.1.0~bionic
    # install standalone
    # bind address = 127.0.0.1

    # Test that couch is running
    curl http://localhost:5984/

Reporting Server

To launch the reports server, just type yarn start.

You can also build the server code by running yarn build, which puts its output in the lib folder. You can then use forever-service or similar tools to install the software on your server machine.

# install forever-service:
sudo npm i -global forever
sudo npm i -global forever-service

# install:
cd edge-reports-server
sudo forever-service install reportsQuery --script lib/indexEngine.js --start
sudo forever-service install reportsRates --script lib/indexRatesEngine.js --start
sudo forever-service install reportsApi --script lib/indexApi.js --start

# manage:
sudo service reportsQuery restart
sudo service reportsQuery stop
sudo service reportsRates restart
sudo service reportsRates stop
sudo service reportsApi restart
sudo service reportsApi stop

# uninstall:
sudo forever-service delete reportsQuery
sudo forever-service delete reportsRates
sudo forever-service delete reportsApi

Demo app

Run yarn demo to launch the demo app in your web browser.

edge-reports-server's People

Contributors

algtan avatar dependabot[bot] avatar itoi06 avatar jacobburrell avatar lpeterson18 avatar masanes avatar mulderkristen avatar paullinator avatar peachbits avatar procyonlotor123 avatar ruslanfirefly avatar samholmes avatar swansontec avatar szgergely avatar thehobbit85 avatar thomasgonda3 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.