{"id":15028749,"url":"https://github.com/trackhub/website","last_synced_at":"2025-04-09T20:32:17.308Z","repository":{"id":37587688,"uuid":"151818905","full_name":"trackhub/website","owner":"trackhub","description":"System for routes/tracks sharing","archived":false,"fork":false,"pushed_at":"2025-03-02T22:08:45.000Z","size":6151,"stargazers_count":5,"open_issues_count":18,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-23T22:25:07.901Z","etag":null,"topics":["gps-visualizer","php8","php83","symfony-application"],"latest_commit_sha":null,"homepage":"https://track-hub.com/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trackhub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-06T08:15:43.000Z","updated_at":"2025-03-02T22:06:34.000Z","dependencies_parsed_at":"2024-03-17T01:59:23.052Z","dependency_job_id":"33aa709e-fa08-4102-99ec-e633a1c01a3c","html_url":"https://github.com/trackhub/website","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trackhub%2Fwebsite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trackhub%2Fwebsite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trackhub%2Fwebsite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trackhub%2Fwebsite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trackhub","download_url":"https://codeload.github.com/trackhub/website/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248107294,"owners_count":21048894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gps-visualizer","php8","php83","symfony-application"],"created_at":"2024-09-24T20:09:00.602Z","updated_at":"2025-04-09T20:32:17.285Z","avatar_url":"https://github.com/trackhub.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Installation\n\n! MacOS/Windows is not supported !\n\nOur 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. \n\n## Docker setup\n\n* [Install docker](https://docs.docker.com/install/)\n* [Docker post install steps](https://docs.docker.com/install/linux/linux-postinstall/) - optional\n\n## Container build/start\n\nStart local env\n```sh\nbash run.sh\n```\n\nAttaching to the `web` container\n```sh\ndocker exec -it -u www-data track_web_1 bash\n```\n\n### Install web components (done automatically on container startup)\n```sh\ncomposer install\nyarn install\n# dev env\nyarn encore dev\n# prod env\nyarn encore production\n```\n\n### Create DB schema (done automatically on container startup)\n```sh\ncd /var/www/script/migration\ncomposer install --no-dev\n./vendor/bin/phinx migrate\n```\n\n\n# Promoting user to admin\nExecute the following sql query, replace `@some_condition@` with your conditions.\n\n```sql\nUPDATE `user`\nSET `roles` = 'a:1:{i:0;s:10:\"ROLE_ADMIN\";}'\nWHERE @some_condition@\n```\n\n# Facebook login\n1. In order to use *our development application*, we need to manually add you as facebook app developer, please create an issue.\n2. Make sure you are using the facebook token from `.env.dist`\n3. You have to manually set [hostname](https://linux.die.net/man/1/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.\n\nExample config in `/etc/hosts`\n```\n172.20.0.3 gps.test\n```\n\nIf you use your own facebook application, then you need to fill your credentials in `.env` file.\n\n# GPS info\n\n# GPS elevation accuracy\nOur ElevationDiffReducer have \"buffer\" of 40 metres.\nElevation accuracy:\n* 31m - according to [Singletrack](https://www.singletracks.com/gps/gps-elevation-accuracy-test-smartphone-apps-vs-dedicated-gps/)\n* 10m - according to [gpsinformation.net](http://gpsinformation.net/main/altitude.htm)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrackhub%2Fwebsite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrackhub%2Fwebsite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrackhub%2Fwebsite/lists"}