Francoralite / francoralite

BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Francoralite

example workflow codecov

Installation

System dependencies

See Docker CE

apt-get install python-tk python-gst-1.0 python-dev libmysqlclient-dev

Git dependencies

git clone git@github.com:francoralite/francoralite.git
git submodule update --recursive --init

Run stack

You must have docker compose installed inside a Python2 virtualenv

docker-compose up

Run tests (back and front)

We need to install tests dependencies inside container before run tests

docker-compose exec app bash -c 'pip install --no-cache-dir .[tests]'
docker-compose exec app bash -c './scripts/deps_selenium.sh'

Now, we can launch all tests

docker-compose exec app bash -c 'py.test -Werror -x'

In case, we want to launch front tests only

docker-compose exec app bash -c 'py.test francoralite/apps/francoralite_front/tests/ -x'

Generate graph models

docker-compose exec app bash -c './scripts/generate_graph_models.sh'

URLs

Replace 50000 with your Traefik listening port

With Traefik as reverse proxy, you can use explicit fqdn instead IP addresses.

During development, all services are accessible behind the reverse proxy but this must be change for the production deployment.

Documentation

You MUST update the permission linked to these URLs