{"id":20234811,"url":"https://github.com/datamade/openness-project-nmid","last_synced_at":"2025-06-24T09:34:07.743Z","repository":{"id":53671084,"uuid":"62660191","full_name":"datamade/openness-project-nmid","owner":"datamade","description":"Money Trail NM - New Mexico In Depth's Campaign Finance Explorer","archived":false,"fork":false,"pushed_at":"2025-05-09T12:30:44.000Z","size":1019818,"stargazers_count":3,"open_issues_count":37,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-09T13:45:35.903Z","etag":null,"topics":["campaign-finance","new-mexico"],"latest_commit_sha":null,"homepage":"https://moneytrailnm.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datamade.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}},"created_at":"2016-07-05T18:32:09.000Z","updated_at":"2025-05-09T12:30:50.000Z","dependencies_parsed_at":"2024-04-08T16:03:12.722Z","dependency_job_id":"be2069d6-32a1-4f2b-b3da-9625bde446e4","html_url":"https://github.com/datamade/openness-project-nmid","commit_stats":null,"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"purl":"pkg:github/datamade/openness-project-nmid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datamade%2Fopenness-project-nmid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datamade%2Fopenness-project-nmid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datamade%2Fopenness-project-nmid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datamade%2Fopenness-project-nmid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datamade","download_url":"https://codeload.github.com/datamade/openness-project-nmid/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datamade%2Fopenness-project-nmid/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261643679,"owners_count":23188915,"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":["campaign-finance","new-mexico"],"created_at":"2024-11-14T08:13:02.853Z","updated_at":"2025-06-24T09:34:07.717Z","avatar_url":"https://github.com/datamade.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Money Trail NM - New Mexico Campaign Finance Site\n\nThis site brings greater transparency to New Mexico politics by providing an overview of campaign contributions, expenditures, and the people, businesses, and organizations involved.\n\n## Development\n\nDevelopment requires a local installation of [Docker](https://docs.docker.com/install/)\nand [Docker Compose](https://docs.docker.com/compose/install/).\n\nTo run the application, first build the app image:\n\n```bash\ndocker-compose build\n```\n\nNext, load in data and build your search index:\n\n```bash\ndocker-compose run --rm app python make nightly \ndocker-compose run --rm app python manage.py make_search_index\n```\n\nTo enable candidate merging for local development, create an admin user (`python manage.py createsuperuser`) and turn on database caching by adding `DJANGO_CACHE_BACKEND: \"db.DatabaseCache\"` to the environment block in `docker-compose.yml`. (django-select2 requires a persistent cache.) _This step is not necessary if you do not need to test merge functionality._\n\nFinally, run the app:\n\n```bash\ndocker-compose up\n```\n\nThe app will be available at http://localhost:8000. The database will be exposed\non port 32001.\n\n## Resetting the database\n\nThe data import scripts for this app will automatically recognize if you have data imported, and add or update new data accordingly. However, if you'd like to start over from scratch but don't want to delete your user and page data, you can start by running the `flush_camp_fin` command to flush campaign finance data from the database:\n\n```bash\ndocker-compose run --rm app python manage.py flush_camp_fin\n```\n\n## ETL\nThe nightly and quarterly ETL scripts are run in a separate repo, through github actions: https://github.com/datamade/nmid-scrapers\n\n## Errors / Bugs\n\nIf something is not behaving intuitively, it is a bug, and should be reported.\nReport it here: https://github.com/datamade/openness-project-nmid/issues\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatamade%2Fopenness-project-nmid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatamade%2Fopenness-project-nmid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatamade%2Fopenness-project-nmid/lists"}