{"id":39942491,"url":"https://github.com/stevecassidy/races","last_synced_at":"2026-01-18T19:31:40.364Z","repository":{"id":187865199,"uuid":"302009897","full_name":"stevecassidy/races","owner":"stevecassidy","description":"Source for cabici.net","archived":false,"fork":false,"pushed_at":"2025-11-15T10:56:46.000Z","size":5652,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-15T12:23:26.605Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stevecassidy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-10-07T11:06:29.000Z","updated_at":"2025-11-15T10:56:51.000Z","dependencies_parsed_at":"2025-08-14T02:33:41.076Z","dependency_job_id":null,"html_url":"https://github.com/stevecassidy/races","commit_stats":null,"previous_names":["stevecassidy/races"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stevecassidy/races","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevecassidy%2Fraces","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevecassidy%2Fraces/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevecassidy%2Fraces/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevecassidy%2Fraces/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stevecassidy","download_url":"https://codeload.github.com/stevecassidy/races/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevecassidy%2Fraces/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28549375,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T19:22:41.102Z","status":"ssl_error","status_checked_at":"2026-01-18T19:22:26.310Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-18T19:31:39.774Z","updated_at":"2026-01-18T19:31:40.357Z","avatar_url":"https://github.com/stevecassidy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cabici\n\n## Deployment\n\n## Digital Ocean\n\nUse docker to package the Django application.  \n\nTo build:\n\n```shell\ndocker build -f Dockerfile -t docker.pkg.github.com/stevecassidy/races/web:latest . \ndocker login docker.pkg.github.com -u stevecassidy -p \u003ctoken\u003e\ndocker push docker.pkg.github.com/stevecassidy/races/web:latest\n```\n\nOn the host:\n\n```shell\ndocker login docker.pkg.github.com -u stevecassidy -p \u003ctoken\u003e\ndocker pull docker.pkg.github.com/stevecassidy/races/web:latest\ndocker run -d --env-file env.prod -p 8000:8000  docker.pkg.github.com/stevecassidy/races/web:latest gunicorn --bind=0.0.0.0  races.wsgi\n```\n\n`.env.prod` contains the production configuration environment\n\nNginx installed on the Droplet routes traffic to the docker container.\n\nPostgresql installed on the droplet serves the database.\n\nCreate database user with a password (under the postgres account):\n\n```shell\ncreateuser -P -s -e cabici\n```\n\nCreate database (again as postgres):\n\n```shell\ncreatedb cabici\n```\n\nRestore database from backup (as root)\n\n```shell\nzcat cabici_pg-20201128.sql.gz | psql -U cabici -W --host=localhost\n```\n\n## Running Tests\n\n```shell\ndocker-compose run web python bin/production.py test\n```\n\n## Development under Docker Compose\n\nRun under docker componse to get a postgres database.  \n\n```shell\ndocker compose run -d\n```\n\nShould start web server on port 8000.\n\nRestore database from backup into compose container:\n\n```shell\ndocker compose exec -T db psql -U cabici -W --host=localhost \u003c cabici_2023-01-01.Sunday.sql\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevecassidy%2Fraces","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevecassidy%2Fraces","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevecassidy%2Fraces/lists"}