This documentation is a work in progress. More details to follow.
apt install python3-dev default-libmysqlclient-dev build-essential redis-server supervisor
- Python 3.7
The following python modules are required as well: python celery django django-cache-memoize django-cors-headers django-filter django-redis djangorestframework gunicorn jsonschema mysqlclient pycoingecko python-redis-lock requests sentry-sdk simplejson supervisor whitenoise python-dotenv
cp .env.default .env
Configure your .env:
DB_JAVA_WALLET (signum full node database) Only requires read access
See additional info about set up DB here
To initilize the explorer database (DB_DEFAULT) run the following command:
python manage.py migrate --no-input
Start a django webserver to test if your instance works:
python manage.py runserver 0.0.0.0:5000
To run in production use the provided supervisord.conf to run the service with supervisord:
/path/to/your/supervisord -c /supervisord.conf