flux
所属分类:云计算
开发工具:JavaScript
文件大小:4648KB
下载次数:0
上传日期:2023-05-09 00:57:52
上 传 者:
sh-1993
说明: flux,flux,通往去中心化世界的门户<https:home.runonflux.io><https:api.runconflux.io>[https:docs.runonflu...](https:docs.runonflux.io)
(Flux, Your Gateway to a Decentralized World. <https://home.runonflux.io> <https://api.runonflux.io> <https://docs.runonflux.io> <https://source.runonflux.io> <https://wiki.runonflux.io>)
文件列表:
.browserslistrc (21, 2023-06-14)
.editorconfig (174, 2023-06-14)
.eslintignore (97, 2023-06-14)
.eslintrc.js (1299, 2023-06-14)
HomeUI (0, 2023-06-14)
HomeUI\dist (0, 2023-06-14)
HomeUI\dist\css (0, 2023-06-14)
HomeUI\dist\css\chunk-07114f10.css (185, 2023-06-14)
HomeUI\dist\css\chunk-0c015dcd.css (285, 2023-06-14)
HomeUI\dist\css\chunk-0c6ae8f0.css (47, 2023-06-14)
HomeUI\dist\css\chunk-11498383.css (1074, 2023-06-14)
HomeUI\dist\css\chunk-138ffd6c.css (8753, 2023-06-14)
HomeUI\dist\css\chunk-2435355f.css (47, 2023-06-14)
HomeUI\dist\css\chunk-259025c2.css (192, 2023-06-14)
HomeUI\dist\css\chunk-29173282.css (140, 2023-06-14)
HomeUI\dist\css\chunk-2aa43537.css (185, 2023-06-14)
HomeUI\dist\css\chunk-2ca4a6b3.css (307, 2023-06-14)
HomeUI\dist\css\chunk-3ed26654.css (607, 2023-06-14)
HomeUI\dist\css\chunk-41c98490.css (47, 2023-06-14)
HomeUI\dist\css\chunk-4b97e0a0.css (185, 2023-06-14)
HomeUI\dist\css\chunk-5551db4a.css (492, 2023-06-14)
HomeUI\dist\css\chunk-5ae43c90.css (15964, 2023-06-14)
HomeUI\dist\css\chunk-62c6dc85.css (492, 2023-06-14)
HomeUI\dist\css\chunk-6dbaaeb9.css (469, 2023-06-14)
HomeUI\dist\css\chunk-6fc56ce1.css (1410, 2023-06-14)
HomeUI\dist\css\chunk-765d635e.css (2357, 2023-06-14)
HomeUI\dist\css\chunk-785363c7.css (1335982, 2023-06-14)
HomeUI\dist\css\chunk-7dc032a2.css (185, 2023-06-14)
HomeUI\dist\css\chunk-8bbebd58.css (1523690, 2023-06-14)
... ...
# Flux
![Flux.png](https://github.com/RunOnFlux/flux/blob/master/flux_banner.png)
[![DeepScan grade](https://github.com/RunOnFlux/flux/blob/master/https://deepscan.io/api/teams/***36/projects/8442/branches/100920/badge/grade.svg)](https://github.com/RunOnFlux/flux/blob/master/https://deepscan.io/dashboard#view=project&tid=***36&pid=8442&bid=100920)[![CodeFactor](https://github.com/RunOnFlux/flux/blob/master/https://www.codefactor.io/repository/github/runonflux/flux/badge)](https://github.com/RunOnFlux/flux/blob/master/https://www.codefactor.io/repository/github/runonflux/flux)[![Total alerts](https://github.com/RunOnFlux/flux/blob/master/https://img.shields.io/lgtm/alerts/g/RunOnFlux/flux.svg?logo=lgtm&logoWidth=18)](https://github.com/RunOnFlux/flux/blob/master/https://lgtm.com/projects/g/RunOnFlux/flux/alerts/)[![Language grade: JavaScript](https://github.com/RunOnFlux/flux/blob/master/https://img.shields.io/lgtm/grade/javascript/g/RunOnFlux/flux.svg?logo=lgtm&logoWidth=18)](https://github.com/RunOnFlux/flux/blob/master/https://lgtm.com/projects/g/RunOnFlux/flux/context:javascript)[![codecov](https://github.com/RunOnFlux/flux/blob/master/https://codecov.io/gh/RunOnFlux/flux/branch/development/graph/badge.svg?token=N31OUPUWZJ)](https://github.com/RunOnFlux/flux/blob/master/https://codecov.io/gh/RunOnFlux/flux)
Flux is available on domains, load balancing the entire Flux network. You can access both UI and API on following main domain
[Flux](https://github.com/RunOnFlux/flux/blob/master/https://home.runonflux.io)
[API](https://github.com/RunOnFlux/flux/blob/master/https://api.runonflux.io)
## API Documentation
[API documentation](https://github.com/RunOnFlux/flux/blob/master/https://docs.runonflux.io)
## Source code Documentation
[Source Code documentation](https://github.com/RunOnFlux/flux/blob/master/https://source.runonflux.io)
## The gateway to the Flux Network
Flux is the frontend UI to the entire Flux Network, it enables Flux operators to manage their Flux Node easily via a simple web interface. Flux enables an operator to perform all tasks such as updating and maintenance from a simple web interface, instead of having to remotely login to their Flux to manage it.
Flux 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 Flux Daemon (fluxd), Benchmark Daemon (fluxbenchd) and other Flux instances.
## Application Overview
### Backend Solution - Flux
- Provide communication with daemon, benchmark
- Providing private API, and public API, Flux team API (limited!)
- Listen and handle frontend requests
- Requests signing and authenticity verifying
- Handle communication with other Fluxes
- Manage Flux applications - smart spawning, distributing workload, termination depending of application subscription.
- Provide Explorer solution
- and more!
### Frontend Solution - Home
- Display Flux status information
- Display Flux Network information
- Display Flux network information
- Display Specific application information
- Provide API access
- Login into private API part (frontend part)
- Login into Flux team API part (frontend part)
- Private: Management of Flux
- Private: Management of Flux Damone and Benchmark
- Private: Update, status information
- and more!
This application is open source and distributed under the GNU AGPLv3 licence
## Start Flux
Flux needs Daemon to be running, use apt.runonflux.io to install flux daemon
build-essential is a recommended dependency
```bash
sudo apt-get build-essential
```
Setup Mongodb on Ubuntu 18.04 (LTS):
```bash
wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
echo "deb [ arch=amd***,arm*** ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo service mongod start
```
Setup Mongodb on Ubuntu 20.04 (LTS):
```bash
wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
echo "deb [ arch=amd***,arm*** ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo service mongod start
```
Setup Mongodb on Red Hat or CentOS:
```bash
sudo yum install nano
sudo nano /etc/yum.repos.d/mongodb-org-5.0.repo
# Paste below into the mongodb-org-5.0.repo file
[mongodb-org-5.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/5.0/x86_***/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-5.0.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 16 on Ubuntu 18.04/20.04:
```bash
sudo apt-get install curl
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | bash
source ~/.profile
nvm install 16
nvm use 16
```
Install Node Version Manager (NVM) and NodeJS 16 on Redhat/CentOS:
```bash
sudo yum install curl
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | bash
source ~/.bashrc
nvm install 16
nvm use 16
```
Install Docker using on Ubuntu 20.04
```bash
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd***] https://download.docker.com/linux/ubuntu focal stable"
sudo apt-get update
sudo apt install docker-ce
```
Install Docker using on Ubuntu 18.04
```bash
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd***] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt-get update
sudo apt install docker-ce
```
Install Syncthing
```bash
sudo curl -o /usr/share/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg
echo 'deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable' | sudo tee /etc/apt/sources.list.d/syncthing.list
sudo apt install ca-certificates -y > /dev/null 2>&1
sudo apt-get update -y
sudo apt-get install syncthing -y
```
Clone Flux repo (Ubuntu):
```bash
sudo apt-get install git
git clone https://github.com/runonflux/flux
```
Clone Flux repo (Redhat/CentOS):
```bash
sudo yum install git
git clone https://github.com/runonflux/flux
```
Allow Inbound Connections on UFW firewall - default ports (if ufw enabled):
```bash
sudo ufw allow 16126
sudo ufw allow 16127
sudo ufw allow 16129
```
Install Flux dependancies (Ubuntu/CentOS/Redhat):
```bash
cd flux
npm install
```
To run this as Production:
```bash
npm start
```
To run this as Development: Start both solutions with
```bash
npm run fluxdev
npm run homedev
```
THE SETUP ENDS HERE...
The following information below provided for brief usage guidelines and/or examples only.
## Flux Home Information
> Frontend interface to interact with the Flux network
> Uses port 16126 by default
## Build Setup
```bash
# serve with hot reload at localhost:16126
npm run homedev
# build for production with minification
npm run homebuild
# build for production and view the bundle analyzer report
npm run homebuild --report
```
## Flux Information
> Backend interface to interact with the Flux Network
> Uses port 16127 by default
## Continued Build Setup
```bash
# serve with hot reload at localhost:16126
npm run fluxdev
```
Made with by the Flux Team
近期下载者:
相关文件:
收藏者: