Skip to content

trackhub/website

Repository files navigation

Installation

! MacOS/Windows is not supported !

Our local environment works only on Linux based OS. if you are able to modify the enviroment to be compatible with windows/macos please create MR containing CI tests.

Docker setup

Container build/start

Start local env

bash run.sh

Attaching to the web container

docker exec -it -u www-data track_web_1 bash

Install web components (done automatically on container startup)

composer install
yarn install
# dev env
yarn encore dev
# prod env
yarn encore production

Create DB schema (done automatically on container startup)

cd /var/www/script/migration
composer install --no-dev
./vendor/bin/phinx migrate

Promoting user to admin

Execute the following sql query, replace @some_condition@ with your conditions.

UPDATE `user`
SET `roles` = 'a:1:{i:0;s:10:"ROLE_ADMIN";}'
WHERE @some_condition@

Facebook login

  1. In order to use our development application, we need to manually add you as facebook app developer, please create an issue.
  2. Make sure you are using the facebook token from .env.dist
  3. You have to manually set hostname gps.test to match your container ip. Then you must access the project via https://gps.test instead of the container IP. if you need different hostname - please create an issue/PR.

Example config in /etc/hosts

172.20.0.3 gps.test

If you use your own facebook application, then you need to fill your credentials in .env file.

GPS info

GPS elevation accuracy

Our ElevationDiffReducer have "buffer" of 40 metres. Elevation accuracy: