jdtzmn / flocx-ui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flocx-ui

Flocx plugin for horizon to show and create bids, offers, and contracts

FLOCX provides a marketplace for trading physical servers among co-located pools of hardware where each pool is owned and managed by independent organizations. Using FLOCX, organizations can rent nodes from their co-located neighbors in times of high demand and offer their own resources at a suitable price when others experience high demand.

Read about the Flocx project here.

Enabling in DevStack (Coming Soon)

Add this repo as an external repository into your local.conf file:

[[local|localrc]]
enable_plugin flocx https://github.com/CCI-MOC/flocx-ui

ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD

Manual Installation

The following below instructions assumes that Horizon is already installed and its installation folder is <horizon>. Detailed information on how to install Horizon can be found at https://docs.openstack.org/horizon/latest/contributor/quickstart.html#setup.

The installation folder of Flocx-ui will be referred to as <flocx-ui>.

Flocx-ui uses Node.js to run linters and JavaScript unit tests. Make sure to install Node.js before continuing.


Clone Flocx-ui

$ git clone https://github.com/CCI-MOC/flocx-ui
$ cd flocx-ui

Install requirements

$ npm install # This should install python dependencies as well

Install source code

$ sudo python setup.py install

Enable it in Horizon

$ ln -s <flocx-ui>/flocx_ui/enabled/_31000_flocx-ui.py <horizon>/openstack_dashboard/local/enabled

And restart the Apache server

$ sudo service apache2 restart

Running tests

Python tests

$ npm run test:py

JavaScript tests

$ npm run test:js

About

License:Apache License 2.0


Languages

Language:JavaScript 50.3%Language:Python 30.9%Language:HTML 18.3%Language:Shell 0.2%Language:Dockerfile 0.2%