1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00
maloja/DEVELOPMENT.md
2021-12-21 22:39:07 +01:00

1.0 KiB

Basic Development Instructions

After you've cloned the repository, traverse into the maloja folder with cd maloja.

Your system needs several packages installed. On Alpine, this can be done with

apk add python3 python3-dev gcc libxml2-dev libxslt-dev py3-pip libc-dev linux-headers

For other distros, try to find the equivalents of the packages listed or simply check your error output.

Then install all Python dependencies with pip install -r requirements.txt. To avoid cluttering your system, consider using a virtual environment.

Running the server

For development, you might not want to install maloja files all over your filesystem. Use the environment variable MALOJA_DATA_DIRECTORY to force all user files into one central directory - this way, you can also quickly change between multiple configurations.

You can quickly run the server with all your local changes with python3 -m maloja run.

You can also build the package with pip install ..