TRACLE - The open video platform
TRACLE is an upcoming free and open source video platform. This repository contains the source code for the website.
Feel free to fork and make a pull request for small changes. If you're planning to change more than a couple of lines it's probably better to open an issue first.
Join our discord server
Installation (for development)
TRACLE requires Python3, pip3 and Redis if you are running Linux you probably have it already installed, otherwise refer to the documentation of your distribution on how to install it. On Debian you can use this command to make sure all needed packages are installed:
sudo apt install git python3-venv python3-dev build-essential redis-server
First, clone, fork or download this repository. Open a terminal and change your working directory to the root of the repository, e.g.
git clone https://github.com/TeamTracle/tracle.git cd tracle
Next, create a virtual environment and activate it. I recommend venv, e.g.
python3 -m venv .venv source .venv/bin/activate
We use pip-tools to manage the requirements.txt, so install that, too:
pip3 install pip-tools
Next, install the dependencies from requirements.txt and requirements_dev.txt:
pip3 install wheel pip-sync requirements.txt requirements_dev.txt
Create a file called
.env with the following content:
export DEBUG=1 export BUNNYCDN_ENABLED=0 export INSTALLED_APPS="debug_toolbar" # optional
Setup the database:
./manage.py migrate ./manage.py loaddata backend/fixtures/categories.json
You can run a local development server using the following command:
Autoprefixer is run only on deployment or when DEBUG is set to false. You'll need npm to install these node modules:
npm install -g postcss-cli autoprefixer
- api/ REST based api for ajax calls
- backend/ Models, Queries, Everything that could be shared across multiple frontends
- tracle/ The django project folder
- .env Environment variables, used by tracle/settings,py