Installing MINT

Install Dependencies

circle-exclamation
apt-get install libffi-dev libssl-dev python-dev python3-pip
pip3 install virtualenv
circle-exclamation

Install Databases

circle-exclamation

MINT uses a local SQLite database which requires MySQL setup (running a MySQL server instance is not required). Assuming a Ubuntu 16.04. or later operating system, install:

apt-get install libmysqlclient-dev

Install bos-mint

circle-exclamation

You can either install bos-mint via pypi / pip3 (production installation) or via git clone (debug installation). For production use install bos-auto via pip3 is recommended, but the Git master branch is always the latest release as well, making both installations equivalent.

cd ~
mkdir bos-mint
cd bos-mint
# create virtual environment
virtualenv -p python3 env
# activate environment
source env/bin/activate
# install bos-mint into virtual environment
pip3 install bos-mint

For debug use, checkout from GitHub (master branch) and install dependencies manually:

BOS MINT is supposed to run in the virtual environment. Either activate it beforehand like shown above or run it directly in the env/bin folder.

Upgrading bos-mint

circle-exclamation

For production installation, upgrade to the latest version - including all dependencies run:

For debug installation, pull latest master branch and upgrade dependencies manually:

Modify Configuration

Next step is to configure bos-auto.

Default configuration only requires the following:

Possible override values are :

Running bos-mint

To run MINT in debug mode use:

The output that you see should contain:

The above setup is basic and for development use. Going forward, a Witness may want to deploy UWSGI with parallel workers for the endpoint.

MINT is purposely run on localhost to restrict outside access. Securing a Python flask application from malicious break in attempts is tedious and would be an ongoing effort.

triangle-exclamation

Example for SSH tunnel:

Assume bos-mint is running on a remote server accessible via 1.2.3.4 and you have login credentials via SSH (password or private key access). On the local machine that you'll be using to access MINT via a web browser open the tunnel:

-f : Send process to background

-N : Do not send commands (if you need open ssh connections only for tunnelling)

-L : Port mapping (8080 port on your machine, 127.0.0.1:8001 - proxy to where MINT runs)

Now you can open mint in your browser using http://localhost:8080 address.

After starting MINT use your favourite desktop browser to access it and you'll be asked to enter your Witness key that will be stored encrypted in the local Peerplays wallet.

circle-exclamation

Development Use

For MINT development use checkout the latest repository from:

and then run:

Last updated

Was this helpful?