Initial setup: snakkimo API server with PostgreSQL connection

Node.js/Express API server that connects to PostgreSQL via environment variables.
Includes health check, table listing, row queries, and raw SQL endpoint.
Designed for deployment in Coolify alongside the snakkimo PostgreSQL container.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-20 09:02:31 +02:00
commit ab720b09d0
7 changed files with 175 additions and 0 deletions

20
package.json Normal file
View File

@@ -0,0 +1,20 @@
{
"name": "snakkimo-api",
"version": "1.0.0",
"description": "API server for snakkimo PostgreSQL",
"main": "src/index.js",
"scripts": {
"start": "node src/index.js",
"dev": "nodemon src/index.js"
},
"dependencies": {
"express": "^4.19.2",
"pg": "^8.11.3",
"dotenv": "^16.4.5",
"cors": "^2.8.5",
"express-validator": "^7.1.0"
},
"devDependencies": {
"nodemon": "^3.1.0"
}
}