maloja/DEVELOPMENT.md

20 lines
976 B
Markdown
Raw Normal View History

# Basic Development Instructions
After you've cloned the repository, traverse into the `maloja` folder with `cd maloja`.
2021-12-22 00:39:07 +03:00
Your system needs several packages installed. On Alpine, this can be done with
2021-12-23 10:48:39 +03:00
`sh ./install/install_dependencies.sh`
2021-12-22 00:39:07 +03:00
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](https://docs.python.org/3/tutorial/venv.html).
## Running the server
2021-12-22 00:13:27 +03:00
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 .`.