项目作者: trackhub

项目描述 :
System for routes/tracks sharing
高级语言: PHP
项目地址: git://github.com/trackhub/website.git
创建时间: 2018-10-06T08:15:43Z
项目社区:https://github.com/trackhub/website

开源协议:Other

下载


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

  1. bash run.sh

Attaching to the web container

  1. docker exec -it -u www-data track_web_1 bash

Install web components (done automatically on container startup)

  1. composer install
  2. yarn install
  3. # dev env
  4. yarn encore dev
  5. # prod env
  6. yarn encore production

Create DB schema (done automatically on container startup)

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

Promoting user to admin

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

  1. UPDATE `user`
  2. SET `roles` = 'a:1:{i:0;s:10:"ROLE_ADMIN";}'
  3. 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

  1. 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: