{"id":21152747,"url":"https://github.com/aodin/adopt","last_synced_at":"2025-03-14T14:44:48.778Z","repository":{"id":57526309,"uuid":"22899540","full_name":"aodin/adopt","owner":"aodin","description":"Adoptable pets in Denver","archived":false,"fork":false,"pushed_at":"2014-08-29T19:15:45.000Z","size":340,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-21T08:29:44.416Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/aodin.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}},"created_at":"2014-08-13T02:17:51.000Z","updated_at":"2015-04-20T23:46:08.000Z","dependencies_parsed_at":"2022-09-07T02:50:37.883Z","dependency_job_id":null,"html_url":"https://github.com/aodin/adopt","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/aodin%2Fadopt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aodin%2Fadopt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aodin%2Fadopt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aodin%2Fadopt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aodin","download_url":"https://codeload.github.com/aodin/adopt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243597783,"owners_count":20316842,"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-20T10:46:21.841Z","updated_at":"2025-03-14T14:44:48.755Z","avatar_url":"https://github.com/aodin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Adopt\n=====\n\nFind adoptable pets in Denver!\n\nVisit a deployed version of the site at [pets.codefordenver.org](http://pets.codefordenver.org/)!\n\nThis site creates an alternative API for pets in [shelters near Denver](http://www.petharbor.com/pick_shelter.asp?searchtype=ADOPT\u0026friends=1\u0026samaritans=1\u0026nosuccess=0\u0026rows=100\u0026imght=120\u0026imgres=thumb\u0026view=sysadm.v_animal_short\u0026fontface=arial\u0026fontsize=10\u0026zip=80209\u0026miles=10). It is written in Python on the [Django](https://www.djangoproject.com/) web framework. It is backed by a custom robot written in [Go](http://golang.org/).\n\n\n### Website\n\nThe website is deployed and updated through [Fabric](http://www.fabfile.org/) commands. Deploying to a Ubuntu 14.04 server can be done with:\n\n    fab -H user@server deploy\n\nThis will install the necessary software on the server, including [PostgreSQL](http://www.postgresql.org/), [nginx](http://nginx.org/), and [uWSGI](http://projects.unbit.it/uwsgi/).\n\nAny updates can also be performed by the `fabfile`:\n\n    fab -H user@server update\n\n\n### Robot\n\nThe database is populated by an automated Go process. Install the robot with:\n\n    go get -u github.com/aodin/adopt/robot\n\nTo run the robot, including any tests or commands, create a `local_settings.json` file in the `robot` sub-directory with valid database credentials. An example:\n\n```json\n{\n    \"database\": {\n        \"driver\": \"postgres\",\n        \"host\": \"localhost\",\n        \"port\": 5432,\n        \"name\": \"adopt\",\n        \"user\": \"user\",\n        \"password\": \"pass\" \n    }\n}\n```\n\nTo update the animals in the database, simply run the `get_pets.go` script in the `cmd` directory:\n\n    go run get_pets.go\n\nA database can also be bootstrapped with `html` files downloaded from the source website. These are loaded with the `load_file.go` script in the `cmd` directory. For example:\n\n    go run load_file.go others.html cats.html dogs.html\n\nIt is important to run all file in one command. Subsequent operations will be considered separate batches: any animals not in a batch will be marked as removed by the database.\n\n-aodin, 2014\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faodin%2Fadopt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faodin%2Fadopt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faodin%2Fadopt/lists"}