1
0
mirror of https://github.com/alexandrev/xslt-lab.git synced 2026-09-16 18:23:16 +00:00

Add Makefile and docker-compose for local setup

This commit is contained in:
2025-07-01 13:07:42 +02:00
parent 9201a9c02c
commit 2dc2b8cf44
5 changed files with 94 additions and 3 deletions
+25
View File
@@ -53,3 +53,28 @@ export GOOGLE_APPLICATION_CREDENTIALS=/path/to/serviceAccount.json
```
The Firebase project ID is read from the credentials file.
### Makefile
Common tasks are defined in the provided `Makefile`:
```bash
# Build Go binary
make backend-build
# Build React production files
make frontend-build
# Create container images
make backend-image
make frontend-image
```
### Docker Compose
To run the entire stack locally with PostgreSQL use:
```bash
make backend-image frontend-image
docker compose up
```
This starts the backend on port `8000`, the frontend on `3000` and a PostgreSQL instance on `5432`.