Giter Club home page Giter Club logo

fullcyclereact's Introduction

Full Cycle Web and API site

Build Status Codacy Badge Scrutinizer Code Quality
Donate

This project is the front end (UI) React web site for the Full Cycle Bitcoin Mining Controller. Installation of the back end is required and can be found at https://github.com/dfoderick/fullcycle Full Cycle React Full Cycle Switch Pool Full Cycle Reset Miner

Installation

The web sites can be installed on the same Raspberry Pi as the Full Cycle Controller or they can be installed on a separate computer.

By far the easiest option is to install Docker on the Raspberry Pi and run the sites inside Docker containers.

Docker install on Raspberry Pi

If you do not have Docker installed on your Raspberry Pi then follow these instructions.

sudo apt-get install -y apt-transport-https
sudo curl -sSL https://get.docker.com | sudo sh
sudo systemctl enable docker
sudo usermod -aG docker pi

You will need to logout and log back in for permission to take effect. When you log back in then check your Docker installation.

docker info

If you get information about your Docker program then you are ready to go.

Install as Docker containers

The Full Cycle web sites are hosted on Docker Hub (https://hub.docker.com/r/fullcycle/web/) and can be installed using these commands.

docker run --name fullcycleweb -d --network=host --restart unless-stopped fullcycle/web

(Note that API and static pages have been combined into one site in production.)
Once installed, test the API to make sure it responds. Browse to http://raspberrypi.local:5000/api/hello and it should respond with

{"express":"Welcome to Full Cycle Mining"}

(Replace raspberrypi.local with the ip address of your raspberrypi if your pi does not have a network name.)

Then browse to the Web site http://raspberrypi.local:5000/.

!Important! The web page will be blank or show an error if the back end Full Cycle Mining Controller is not running. (Install from https://github.com/dfoderick/fullcycle) If everything is working then you will see the web site similar to the screenshots above.

If you have problems installing or want to give feed back then add an issue to this project.

Dave Foderick
[email protected]

Install directly on the Operating system

If you cannot install using Docker then follow these steps.

Check which versions of node and npm are installed in your system.

node -v
v9.11.1
npm -v
5.6.0

If older than 9.11 and 5.6 then install the update for Node directly from Debian.

sudo curl -sL https://deb.nodesource.com/setup_9.x | sudo bash -
sudo apt-get install -y nodejs

Install dependencies using the following commands.

cd ~/
git clone https://github.com/dfoderick/fullcyclereact.git
cd ~/fullcyclereact/src/api
sudo npm install
sudo npm install nodemon
sudo npm run prod

You will need to log in to another session then run these commands.

sudo npm install -g serve
cd ~/fullcyclereact/src/web
sudo npm install
npm run build
serve -p 3000 build

fullcyclereact's People

Contributors

codacy-badger avatar dfoderick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fullcyclereact's Issues

Site authentication

Web site and api need authentication.
Even a simple configurable username/password would suffice to begin with.

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.