Skip to content
Closed

CR #16

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,6 @@ dist
jest_html_reporters.html
reports

config/default.json

config/local*.json
34 changes: 0 additions & 34 deletions .vscode/launch.json

This file was deleted.

28 changes: 17 additions & 11 deletions config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,23 @@
}
},
"server": {
"port": 8080,
"request": {
"payload": {
"limit": "1mb"
}
},
"response": {
"compression": {
"enabled": true,
"options": null
}
"port": 8080
},
"db": {
"type": "postgres",
"host": "localhost",
"port": 5432,
"username": "myuser",
"password": "mypassword",
"database": "mydatabase",
"schema": "public",
"synchronize": true,
"logging": false
},
"response": {
"compression": {
"enabled": true,
"options": null
}
}
}
18 changes: 18 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
services:
postgres:
image: postgis/postgis:17-3.5-alpine
platform: linux/amd64
container_name: my-postgres
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- '5432:5432'
volumes:
- postgres_data:/var/lib/postgresql/data
- /docker-entrypoint-initdb.d

volumes:
postgres_data:
15 changes: 15 additions & 0 deletions launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug Vitest",
"autoAttachChildProcesses": true,
"program": "${workspaceRoot}/node_modules/vitest/vitest.mjs",
"args": ["run"],
"smartStep": true,
"console": "integratedTerminal"
}
]
}
Loading
Loading