You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- rename docker-compose.yml to compose.yml
- created a separate compose file for tests, allows api to be run locally via docker compose up without tests running
- fixed make docker-run-nginx-proxy which relied on a non-existent file before
- added volumes to app and tests service to allow for changes without re-building
Copy file name to clipboardExpand all lines: CHANGES.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
- remove pgstac 0.8.6 in tests and update documentation ([#354](https://github.com/stac-utils/stac-fastapi-pgstac/pull/354))
8
8
- simplify `extensions.query.Operator` class, by removing unused `operator` method and unncessary dependencies ([#364](https://github.com/stac-utils/stac-fastapi-pgstac/pull/364))
9
9
- handle `ENABLE_TRANSACTIONS_EXTENSIONS`, `ENABLED_EXTENSIONS` and `UVICORN_ROOT_PATH` environment configuration variables via the `config.Settings` class ([#368](https://github.com/stac-utils/stac-fastapi-pgstac/pull/368))
10
+
- Refactor Docker Compose files and Makefile for better organization and modularity. ([#379](https://github.com/stac-utils/stac-fastapi-pgstac/pull/379))
Copy file name to clipboardExpand all lines: README.md
+49-4Lines changed: 49 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,8 @@ pypgstac migrate
61
61
62
62
## Development
63
63
64
+
### Quick Start
65
+
64
66
Install the packages in editable mode:
65
67
66
68
We recommend using [`uv`](https://docs.astral.sh/uv) as project manager for development.
@@ -71,17 +73,60 @@ See https://docs.astral.sh/uv/getting-started/installation/ for installation
71
73
uv sync --dev
72
74
```
73
75
74
-
To run the tests:
76
+
### Running the API Locally
77
+
78
+
Start the API with Docker Compose:
79
+
80
+
```shell
81
+
make docker-run
82
+
```
83
+
84
+
The API will be available at `http://localhost:8082`
85
+
86
+
### Running with Nginx Proxy
87
+
88
+
To run the API behind an Nginx proxy:
89
+
90
+
```shell
91
+
make docker-run-nginx-proxy
92
+
```
93
+
94
+
The API will be available at:
95
+
- Direct: `http://localhost:8082`
96
+
- Via Nginx: `http://localhost:8080/api/v1/pgstac/`
97
+
98
+
### Loading Demo Data
99
+
100
+
To load the Joplin demo dataset:
101
+
102
+
```shell
103
+
make load-joplin
104
+
```
105
+
106
+
### Running Tests
107
+
108
+
To run tests locally (requires postgres/postgis system packages):
75
109
76
110
```shell
77
111
uv run pytest
78
112
```
79
113
80
-
**NOTE:** In order for the above commands to work, you need a number of postgres/postgis system packages to be installed. If running the tests directly on your machine doesn't work, another way is to spin up a test container and run the tests in that container. You need [Docker](https://www.docker.com/) and [Docker Compose](https://docs.docker.com/compose/) installed.
114
+
**NOTE:** If running tests directly on your machine doesn't work, you can use Docker Compose instead. You need [Docker](https://www.docker.com/) and [Docker Compose](https://docs.docker.com/compose/) installed.
0 commit comments