Skip to content

Commit

Permalink
Update commands and instructions (#854)
Browse files Browse the repository at this point in the history
  • Loading branch information
bchapuis authored May 10, 2024
1 parent 6b575f6 commit 4e19e5b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
15 changes: 12 additions & 3 deletions basemap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,28 @@ A PostgreSQL database with the PostGIS extension should be accessible with the f
jdbc:postgresql://localhost:5432/baremaps?user=baremaps&password=baremaps
```

## Getting started
## Importing the data

Assuming that the necessary requirements have been installed, the database can be populated with the following command.

```
baremaps workflow execute --file workflow.js
baremaps workflow execute --file import.js
```

## Updating the data

The data can be updated with the following command. The update workflow will download the latest changes from the OpenStreetMap API and apply them to the database.

```
baremaps workflow execute --file update.js
```

## Serving the tiles and the style in dev mode

The development server can be started with the following command.

```
baremaps map dev --log-level DEBUG \
--database 'jdbc:postgresql://localhost:5432/baremaps?user=baremaps&password=baremaps' \
--tileset 'tileset.js' \
--style 'style.js'
```
Expand Down
6 changes: 3 additions & 3 deletions basemap/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
"host": "http://localhost:9000",
"database": "jdbc:postgresql://localhost:5432/baremaps?&user=baremaps&password=baremaps",
"osmPbfUrl": "https://download.geofabrik.de/europe/switzerland-latest.osm.pbf",
"center": [6.6323, 46.5197],
"bounds": [6.02260949059, 45.7769477403, 10.4427014502, 47.8308275417],
"zoom": 14,
"center": [0, 0],
"bounds": [-180, -85, 180, 85],
"zoom": 2,
}

0 comments on commit 4e19e5b

Please sign in to comment.