Skip to content

Commit ed6d45a

Browse files
committed
Removed geodata.json, users will generate geodata themselves
1 parent 647af32 commit ed6d45a

File tree

2 files changed

+8
-31645
lines changed

2 files changed

+8
-31645
lines changed

geopoly-demo/README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
## Description
66

7-
This example demos using SQLite's built-in Geopoly extension with SQLite Cloud to create a local attractions finder map-plication.
7+
This example demo'es using SQLite's built-in Geopoly extension with SQLite Cloud to create a local attractions finder map-plication.
88

9-
To build the app from scratch and/or customize the attractions, read the [Tutorial](https://docs.sqlitecloud.io/docs/tutorial-geopoly) in the SQLite Cloud documentation.
9+
To build the app from scratch, read this [Tutorial](https://docs.sqlitecloud.io/docs/tutorial-geopoly) in the SQLite Cloud documentation. To quickly try it out, read on!
1010

1111
## Tutorial TL;DR - Get up-and-exploring NYC attractions fast!
1212

@@ -22,17 +22,19 @@ npm i
2222

2323
3. [Sign up](https://account.mapbox.com/auth/signup/) for an Individual Mapbox account. (We'll stay on the free tier.)
2424

25-
4. Create a `.env` file. Add 2 env vars:
25+
4. In the `geopoly-demo` directory, create a `.env` file. Add 2 env vars:
2626

2727
- `REACT_APP_CONNECTION_STRING`. Copy/ paste your connection string from your SQLite Cloud account dashboard.
2828
- `REACT_APP_MAPBOX_TOKEN`. In your Mapbox account dashboard's nav, click Tokens. Copy/ paste your default public token.
2929

30-
5. Run `npm run create-tables` to create 2 DB tables in the `geopoly-demo` database:
30+
5. Also in the `geopoly-demo` dir, create a `data/geodata.json` file. Complete just step `2. Curate your GeoJSON data` in the app [Tutorial](https://docs.sqlitecloud.io/docs/tutorial-geopoly).
31+
32+
6. Run `npm run create-tables` to create 2 DB tables in the `geopoly-demo` database:
3133

3234
- a `polygons` table to store the polygons generated by Geopoly as you interact with the app map, and
33-
- an `attractions` table to store NYC attraction geodata. Since `data/geodata.json` contains ~2000 Point features, it will take a little time for this command to finish inserting the attractions as rows.
35+
- an `attractions` table to store NYC attraction geodata. Since `data/geodata.json` will contain ~2000 Point features, it will take a little time for this command to finish inserting the attractions as rows.
3436

35-
6. Run `npm start` to start your local dev server. Visit `http://localhost:3000/` (adjust the port as-needed) in your browser to view the app.
37+
7. Run `npm start` to start your local dev server. Visit `http://localhost:3000/` (adjust the port as-needed) in your browser to view the app.
3638

3739
- The loaded map is centered at Central Park, NYC.
3840
- In the geocoder (i.e. search input) at the top right of the map, enter "Empire" and select the "Empire State Building" search result.

0 commit comments

Comments
 (0)