{"id":21590965,"url":"https://github.com/spaceteam/space-event-trace","last_synced_at":"2025-03-18T10:15:27.984Z","repository":{"id":122271585,"uuid":"444194633","full_name":"SpaceTeam/space-event-trace","owner":"SpaceTeam","description":"Tracing service for spaceteam events","archived":false,"fork":false,"pushed_at":"2022-01-16T17:41:36.000Z","size":527,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-01-24T16:28:23.604Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SpaceTeam.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":"2022-01-03T20:44:49.000Z","updated_at":"2022-01-04T00:51:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"9684c47f-0554-411b-b762-15ee84ff19fc","html_url":"https://github.com/SpaceTeam/space-event-trace","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpaceTeam%2Fspace-event-trace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpaceTeam%2Fspace-event-trace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpaceTeam%2Fspace-event-trace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpaceTeam%2Fspace-event-trace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpaceTeam","download_url":"https://codeload.github.com/SpaceTeam/space-event-trace/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244198406,"owners_count":20414443,"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":[],"created_at":"2024-11-24T16:21:20.207Z","updated_at":"2025-03-18T10:15:27.965Z","avatar_url":"https://github.com/SpaceTeam.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# space-event-trace\n\nTracing service for [TU Wien Spaceteam](https://spaceteam.at/?lang=en) events.\n![Screenshot](https://user-images.githubusercontent.com/21206831/147995219-c73f22a5-0e8d-4809-b209-09e9d38e4219.png)\n\nThis service is a special adaption of \n[Space Trace](https://github.com/SpaceTeam/space-trace).\n\n## Getting started\n\nInstall Python3.8 (or higher), zbar, popper, libxml2\n\nInstall all dependencies with:\n\n```bash\npython3 -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\nexport FLASK_APP=space_trace FLASK_ENV=development\nflask run\n```\n\nThis launces a simple webserver which can only be accessed from the localhost.\n\n**Note:** Don't use this server in production, it is insecure and low\nperformance.\n\n## Deployment\n\nHow we deploy this app on Ubuntu.\n\nInstall the requirements with:\n\n```bash\nsudo apt -y install python3-venv python3-pip libzbar0 libxml2-dev libxmlsec1-dev libxmlsec1-openssl poppler-utils\n```\n\nCreate a virtual env with:\n\n```bash\npython3 -m venv venv\n```\n\nYou maybe want to copy over the vaccine status of all users from \n[space trace](https://github.com/SpaceTeam/space-trace). In that case you can\njust copy the sqlite file from spacetrace and run the script in \n`scripts/migrate_db.sql`.\n\nCopy `instance/config_example.toml` to `instance/config.toml` and edit all\nthe fields in it.\n\nThe seats in the database need to be created manually. To create them run\n`FLASK_APP=space_trace FLASK_ENV=development flask create-db`.\n\nOpen `space-event-trace.service` and edit the username and all paths to the working\ndirectory.\n\nStart the systemd service with:\n\n```bash\nsudo cp space-event-trace.service /etc/systemd/system\nsudo systemctl daemon-reload\nsudo systemctl enable space-event-trace.service\nsudo systemctl start space-event-trace.service\n```\n\nThe service should now be up and running 🎉\n\nTo stop the service run:\n\n```bash\nsudo systemctl stop space-event-trace.service\n```\n\nTo update the service to a new version (commit) run:\n\n```bash\ngit pull\nsudo systemctl restart space-event-trace.service\n```\n\n## Development\n\n- Use [`black`](https://github.com/psf/black) to format code\n- Try to follow the python style guide [PEP 8](https://www.python.org/dev/peps/pep-0008/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspaceteam%2Fspace-event-trace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspaceteam%2Fspace-event-trace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspaceteam%2Fspace-event-trace/lists"}