Installation

Installing Python

For dragonfly to work you must have Python 3.6 or above installed. For further details on how to do this please see here.

Installing Dragonfly

First, download the Dragonfly repository

  • Via git

    git clone git@github.com:MattJMLewis/dragonfly-app.git

  • Via GitHub

    Simply download the repository and unzip it.

Installing requirements

Next, enter the dragonfly directory and run the following command.

pip install -r requirements.txt

On Windows you may encounter an error installing mysqlclient. If this happens you can download the latest .whl here. There is also an unoffical repo of .whl files here (recommended source). To install simply run pip install name-of-the-whl-file.whl.

After this, run the following command to create the necessary directories for dragonfly to work.

python builder.py setup

Setting up a MySQL database

Dragonfly currently only supports MySQL databases. See here for more details on how to set up a server.

Running dragonfly

Simply run the main.py file. Before doing this you should modify the config.py file to match your setup. As dragonfly implements the Python WSGI interface any WSGI server should work with the application.

Usage

Please see here for the quick start guide on using dragonfly.