Git Product home page Git Product logo

tracle's Introduction

TRACLE - The open video platform

TRACLE is a free and open source video platform.

This repository contains the source code for the website.

Contributing

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)

Using Docker (recommended)

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

Copy envs/local.env.example to envs/local.env

cp envs/local.env.example envs/local.env

Use docker-compose to build the image and start the services

docker-compose -f local.yml up --build -d

Setup the database:

docker-compose -f local.yml exec django python manage.py loaddata backend/fixtures/categories.json

Using virtual environment (here be dragons)

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

Copy envs/local.env.example to src/.env

cp envs/local.env.example src/.env

Setup the database:

cd src/
./manage.py migrate
./manage.py loaddata backend/fixtures/categories.json

You can run a local development server using the following command:

cd src/
./manage.py runserver

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

tracle's People

Contributors

ajacobsen avatar gabre-rod avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.