Preliminary version with only manual updates of node information from the Storj API.
The application uses pipenv for dependencies. To initialize an environment, run the following:
pipenv installTo install development dependencies, run the following:
pipenv install --devThe application can be run using a command line interface, web interface, or in Docker. The application must be run from the virtual environment created by pipenv. Before running any local commands, launch the pipenv shell by running the following:
pipenv shellThe web interface uses Flask. To start the development server, run the following:
FLASK_APP=gui/monitor.py python -m flask runThe command line interface can be started by running the following to see the list of options:
python -m cliThe Docker image runs the web interface using uwsgi.
The latest Docker image can be downloaded and started by running the following:
docker run --name storjmon -p 80:80 cabarnes/storjmonThe Docker image can be built by running the following:
docker build -t storjmon .The locally built image can be started by running the following:
docker run --name storjmon -p 80:80 storjmonTesting is done using pytest and prospector. To execute the tests, run the following:
pytest && prospectorNOTE: The development dependencies must be installed.