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
- Install docker
- Docker post install steps - optional
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
- In order to use our development application, we need to manually add you as facebook app developer, please create an issue.
- Make sure you are using the facebook token from
.env.dist
- 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:
- 121m - according to Garmin
- 31m - according to Singletrack
- 10m - according to gpsinformation.net