Code Monkey home page Code Monkey logo

zelflux's Introduction

ZelFlux - ZelNode Daemon

ZelNode.gif

DeepScan grade CodeFactor

API Documentation

API documentation

The gateway to the Zel Network

ZelFlux is the frontend UI to the entire Zel Network, it enables ZelNode operators to manage their ZelNode easily via a simple web interface. ZelFlux enables a ZelNode operator to perform all tasks such as updating and maintenance from a simple web interface, instead of having to remotely login to their ZelNode to manage it.

ZelFlux Requires a reasonably new version of Node.js (npm), MongoDB and Docker. It is a MongoDB, Express.js, Vue.js, Node.js (MEVN) application

This application communicates locally with the ZelCash Daemon (zelcashd), ZelBench Daemon (benchmarkd) and with other ZelNode Daemons (zelflux).

Application Overview

Backend Solution - zelback

  • Provide communication with zelcashd
  • Providing private API, and public API, ZelNode team API (limited!)
  • Listen and handel frontend requests
  • Requests signing and authenticity verifying
  • Handel communication with other zelnode daemons (zelflux solution)
  • Manage ZelNode applications - smart spawning, distributing workload, termination depending of application subscription.
  • and more!

Frontend Solution - zelfront

  • Display ZelNode status information
  • Display Zel Network information
  • Display ZelCash status information
  • Display ZelCash network information
  • Display Specific application information
  • Provide API access
  • Login into private API part (frontend part)
  • Login into ZelNode team API part (frontend part)
  • Private: Management of ZelNode
  • Private: Management of ZelCash
  • Private: Update, status information
  • and more!

This application is open source and distributed under the GNU AGPLv3 licence

Start ZelFlux

ZelFlux needs Zelcashd to be ruuning, to setup Zelcashd follow these instructions.

Setup Mongodb on Ubuntu 16.04 (LTS):

wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -

echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list

sudo apt-get update

sudo apt-get install -y mongodb-org

sudo service mongod start

Setup Mongodb on Ubuntu 18.04 (LTS):

wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -

echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list

sudo apt-get update

sudo apt-get install -y mongodb-org

sudo service mongod start

Setup Mongodb on Red Hat or CentOS:

sudo yum install nano

sudo nano /etc/yum.repos.d/mongodb-org-4.2.repo

# Paste below into the mongodb-org-4.2.repo file

[mongodb-org-4.2]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.2/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.2.asc

# exit nano

sudo yum install -y mongodb-org

# Start Mongodb on startup for CentOS 7
sudo systemctl enable mongod.service

# Start Mongodb on startup for CentOS 5/6
sudo chkconfig mongod on

# Start Mongodb on CentOS 7
sudo systemctl start mongod.service

# Start Mongodb on CentOS 5/6
sudo service mongod start

Install Node Version Manager (NVM) and NodeJS 12 on Ubuntu 16.04/18.04:

sudo apt-get install curl

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | bash

source ~/.profile

nvm install 12

nvm use 12

Install Node Version Manager (NVM) and NodeJS 12 on Redhat/CentOS:

sudo yum install curl

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | bash

source ~/.bashrc

nvm install 12

nvm use 12

Install Docker using snap

snap install docker

Clone ZelFlux repo (Ubuntu):

sudo apt-get install git

git clone https://github.com/zelcash/zelflux

Clone ZelFlux repo (Redhat/CentOS):

sudo yum install git

git clone https://github.com/zelcash/zelflux

Allow Inbound Connections on UFW firewall (ONLY if ufw enabled):

sudo ufw allow 16126/tcp
sudo ufw allow 16127/tcp

Install ZelFlux dependancies (Ubuntu/CentOS/Redhat):

cd zelflux

npm install

To run this as Production:

npm start

To run this as Development: Start both solutions with

npm run zelbackdev
npm run zelfrontdev

THE SETUP ENDS HERE... The following information below provided for brief usage guidelines and/or examples only.

ZelFront Information

Frontend interface to interact with the Zel network Uses port 16126

Build Setup

# serve with hot reload at localhost:16126
npm run zelfrontdev

# build for production with minification
npm run zelfrontbuild

# build for production and view the bundle analyzer report
npm run zelfrontbuild --report

ZelBack Information

Backend interface to interact with the Zel Network Uses port 16127

Continued Build Setup

# serve with hot reload at localhost:16126
npm run zelbackdev

Made with ❤️ by the Zel Team

zelflux's People

Contributors

thetrunk avatar fallengravity avatar max1ne avatar dependabot-preview[bot] avatar acharyaone avatar milesmanley avatar dk808 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.