{"id":25107667,"url":"https://github.com/tsotetsi/bloodhound","last_synced_at":"2026-04-10T13:31:48.766Z","repository":{"id":259488746,"uuid":"878021255","full_name":"tsotetsi/bloodhound","owner":"tsotetsi","description":"Track requested agents online.","archived":false,"fork":false,"pushed_at":"2025-01-23T08:15:51.000Z","size":118,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-10-04T11:37:48.390Z","etag":null,"topics":["allauth","django","docker","drf","postgresql","pytest","python3","redis","unit-testing","user-management"],"latest_commit_sha":null,"homepage":"https://bh.io","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/tsotetsi.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-24T16:31:21.000Z","updated_at":"2025-01-23T08:15:54.000Z","dependencies_parsed_at":"2025-10-04T11:26:45.796Z","dependency_job_id":"bcd8ccda-16d6-480b-a91f-5a2af0c94e4a","html_url":"https://github.com/tsotetsi/bloodhound","commit_stats":null,"previous_names":["tsotetsi/bloodhound"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tsotetsi/bloodhound","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsotetsi%2Fbloodhound","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsotetsi%2Fbloodhound/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsotetsi%2Fbloodhound/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsotetsi%2Fbloodhound/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsotetsi","download_url":"https://codeload.github.com/tsotetsi/bloodhound/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsotetsi%2Fbloodhound/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31645262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","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":["allauth","django","docker","drf","postgresql","pytest","python3","redis","unit-testing","user-management"],"created_at":"2025-02-07T23:48:58.281Z","updated_at":"2026-04-10T13:31:48.734Z","avatar_url":"https://github.com/tsotetsi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bloodhound\n\n## Getting Up and Running Locally With Docker\n\n## Prerequisites\n\n - Docker - follow the installation [instructions](https://docs.docker.com/get-started/get-docker/#supported-platforms)  if you do not have it.\n - Docker Compose - refer to the [official documentation](https://docs.docker.com/compose/install/) for the installation guide.\n - Pre-commit - refer to the [official documentation](https://pre-commit.com/#install) for the pre-commit.\n\n## Build the Stack\nThe build command can take a while, especially the first time you run this particular command on your machine.\n\n```\n$ docker compose -f docker-compose.local.yml build\n```\n\nIf you want to emulate production env you can use `docker-compose.production.yml` instead.\n\nBefore doing any git commit, [pre-commit](https://pre-commit.com/#install) should be installed globally on your local machine, and then:\n\n```\n$ git init\n$ pre-commit install\n```\n\nFailing to do so will result with a bunch of CI and Linter errors that can be avoided with pre-commit.\n## Run the Stack\n\nThis brings up both Django and PostgreSQL. The first time it is run it might take a while to get started, but subsequent runs will occur quickly.\n\nOpen a terminal at the project root and run the following for local development:\n\n```\n$ docker compose -f docker-compose.local.yml up\n```\n\nYou can also set the environment variable COMPOSE_FILE pointing to docker-compose.local.yml like this:\n\n```\n$ export COMPOSE_FILE=docker-compose.local.yml\n```\n\nAnd then run:\n\n```\n$ docker compose up\n```\n\nTo check docker logs, you can run:\n\n```\n$ docker compose logs\n```\n\n## Useful commands\n\n - `pip list --not-required --format=freeze \u003e requirements/base.txt` Add only required deps to the base file.\n\n## Database commands.\nTo get the postgres image-id, use the following command:\n\n- `docker ps | grep postgres | awk '{print $1}'`\n   then you would get something like: `cd2057ecd4d5` which is the postgres image.\n\n- `docker exec -it \u003cimage-id\u003e psql -U dev -d postgres -c \"DROP DATABASE bloodhound;\"` # Delete DB.(Fix me!)\n- `docker exec -it \u003cimage-id\u003e psql -U dev -d postgres -c \"CREATE DATABASE bloodhound;` # Create DB.(Fix me!)\n\n### Test coverage.\n\nTo run the tests, check your test coverage, and generate an HTML coverage report:\n\n    $ coverage run -m pytest\n    $ coverage html\n    $ open htmlcov/index.html\n\n#### Running tests with pytest.\n\n    $ pytest\n\n### Run django commands against the image.\n- `docker-compose run --rm django python manage.py createsuperuser`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsotetsi%2Fbloodhound","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsotetsi%2Fbloodhound","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsotetsi%2Fbloodhound/lists"}