{"id":20313717,"url":"https://github.com/posthog/whereintheworld","last_synced_at":"2025-10-29T00:15:11.392Z","repository":{"id":44555399,"uuid":"402037397","full_name":"PostHog/whereintheworld","owner":"PostHog","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-16T12:58:55.000Z","size":2874,"stargazers_count":5,"open_issues_count":2,"forks_count":6,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-08-16T13:39:19.369Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://whereintheworld.posthog.com","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/PostHog.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":"2021-09-01T11:33:54.000Z","updated_at":"2024-08-16T13:39:44.196Z","dependencies_parsed_at":"2024-08-17T04:02:23.614Z","dependency_job_id":null,"html_url":"https://github.com/PostHog/whereintheworld","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/PostHog%2Fwhereintheworld","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PostHog%2Fwhereintheworld/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PostHog%2Fwhereintheworld/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PostHog%2Fwhereintheworld/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PostHog","download_url":"https://codeload.github.com/PostHog/whereintheworld/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224668391,"owners_count":17349967,"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-14T18:12:28.823Z","updated_at":"2025-10-29T00:15:06.371Z","avatar_url":"https://github.com/PostHog.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WITW\n\n\u003e 🚧 This app is still in alpha development and we don't recommend using it yet.\n\n## Development server\n\nThe code for the server is located in the [`backend`](./backend) directory.\n\n### 1. Install dependencies\n\n1. Install [Postgres.app](https://postgresapp.com/) and follow the [instructions](https://postgresapp.com/documentation/install.html) to add it to your path.\n\n2. Set a `virtualenv` (optional)\n\n3. Install the OS \u0026 pip dependencies.\n```\n# On MacOS with brew\nbrew install gdal libgeoip\n\n# On Ubuntu\nsudo add-apt-repository ppa:ubuntugis/ppa\nsudo apt-get update\nsudo apt-get install libgeoip-dev libgdal-dev gdal-bin\nsudo apt-get install postgresql-12-postgis-3\n\n# On everything\npip install -r requirements-dev.txt\npip install -r requirements.txt\n```\n\n**Running on M1**\nTo run successfully on M1, set the following env vars\n```\nexport GDAL_LIBRARY_PATH=/opt/homebrew/lib/libgdal.dylib\nexport GEOS_LIBRARY_PATH=/opt/homebrew/lib/libgeos_c.dylib\n```\n\n### 2. Create database and start backend\n\n```\npsql\nCREATE DATABASE whereintheworld;\nCREATE USER whereintheworld WITH PASSWORD 'whereintheworld';\nALTER ROLE whereintheworld SUPERUSER;\n```\n\n**Migrate the database\n\n```\npython manage.py migrate\npython manage.py cities --import=all\n```\n\n\n### 3. Get Google Oauth configs\n\nhttps://console.cloud.google.com/apis/credentials\n\n\n\n### 3. Start the app\n\nThe code for the frontend is located in the [`src`](./src) directory. You can start the entire app (frontend \u0026 backend) as follows:\n\n```\nyarn\n./bin/start\n```\nThe server is now running at [`http://localhost:8000/`](http://localhost:8000/). **Warning:** Don't visit `localhost:3000` as the raw frontend will not work as expected.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposthog%2Fwhereintheworld","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fposthog%2Fwhereintheworld","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposthog%2Fwhereintheworld/lists"}