|
1 | 1 | # AddressData.net |
2 | 2 |
|
3 | | -<img src="docs/logo.svg" alt="Description" width="105"> |
| 3 | +<img src="docs/logo.svg" alt="AddressData.net logo" width="105"> |
4 | 4 |
|
5 | | -[](https://github.com/ashtonav/addressdata-frontend/actions/workflows/addressdata-app-AutoDeployTrigger-97565f4e-b488-43b4-bd79-af6dc76a766b.yml) |
6 | | -[](LICENSE) |
| 5 | +[](https://github.com/ashtonav/addressdata.net/actions/workflows/addressdata-app-AutoDeployTrigger-97565f4e-b488-43b4-bd79-af6dc76a766b.yml) |
| 6 | +[](CODE_LICENSE) |
7 | 7 |
|
8 | | -This code is used to power [AddressData.net](https://AddressData.net), a site that displays all known addresses by city, alongside an interactive map. |
| 8 | +This repository contains the source code for [AddressData.net](https://addressdata.net) — a website that displays street addresses by city alongside an interactive map. |
9 | 9 |
|
10 | | -Currently, [AddressData.net](https://AddressData.net) contains millions of addresses for over 1,500 cities around the world. |
| 10 | +- **Self-hosting:** run your own instance; see [Installation](#installation). A self-hosted instance is **functionally identical** to the public site. |
| 11 | +- **Coverage:** millions of addresses across 1,500+ cities worldwide. |
| 12 | +- **Baked Data:** no external databases or services are required. A read-only SQLite database containing all addresses is bundled inside the Docker image. See: [the “Baked Data” architectural pattern](https://simonwillison.net/2021/Jul/28/baked-data/). |
11 | 13 |
|
12 | | -## Installation |
| 14 | +## Screenshots |
13 | 15 |
|
14 | | -### How to run |
15 | | -1. From the root folder of the project, run the following commands: |
| 16 | + |
16 | 17 |
|
17 | | -2. ```bash |
18 | | - docker build -t addressdatanet ./src |
19 | | - docker run -it -p 8001:8001 addressdatanet |
20 | | - ``` |
21 | | -2. The API can be accessed at [http://localhost:8001](http://localhost:8001). |
| 18 | + |
22 | 19 |
|
23 | | -FYI: The build script is a bit slow. It may take 20 minutes or more for docker build to be completed. |
| 20 | +## Installation |
24 | 21 |
|
25 | | -## Acknowledgments |
| 22 | +### Using Docker (recommended for self-hosting) |
| 23 | +1. From the repository root, build and run the container: |
| 24 | + ```bash |
| 25 | + docker build -t addressdatanet ./src |
| 26 | + docker run -it -p 8001:8001 addressdatanet |
| 27 | + ``` |
26 | 28 |
|
27 | | -- **Datasette**: |
28 | | - [Datasette](https://docs.datasette.io/en/stable/) is used to display CSV data on a website. It offers a lightweight, flexible way to query and visualize structured data, making it easier to explore and share the address information we collect. |
| 29 | +2. The website can be accessed at [http://localhost:8001](http://localhost:8001). |
29 | 30 |
|
30 | | -- **OpenStreetMap** |
31 | | - This repository includes data extracted from OpenStreetMap (via Overpass API). **Contains information from OpenStreetMap, © OpenStreetMap contributors.** Data is available under the **Open Database License (ODbL) 1.0**. |
| 31 | +> **Note:** The Docker build can take 20 minutes or more to complete. |
32 | 32 |
|
33 | | -- **Datasette Charcoal Theme** by https://github.com/julien040/charcoal-datasette-theme. |
| 33 | +## Acknowledgments |
34 | 34 |
|
| 35 | +* **[Datasette](https://datasette.io/):** |
| 36 | +* **[Datasette Charcoal Theme](https://github.com/julien040/charcoal-datasette-theme)** |
35 | 37 |
|
36 | 38 | ## Contributing |
37 | 39 |
|
38 | 40 | Pull requests are accepted. |
39 | 41 |
|
40 | 42 | ## License |
41 | 43 |
|
42 | | -- The code itself is licensed under [MIT](https://choosealicense.com/licenses/mit/). |
43 | | -- The street addresses were retrieved using github.com/ashtonav/addressdata and are licensed/available under **Open Database License (ODbL) 1.0**. |
| 44 | +* **Code:** [MIT](https://choosealicense.com/licenses/mit/). |
| 45 | +* **Data:** Street-address data retrieved using the [AddressData tool](https://github.com/ashtonav/addressdata) includes information from OpenStreetMap. © OpenStreetMap contributors. The data is available under the Open Database License (ODbL) v1.0. |
0 commit comments