feat: add dockerfile

This commit is contained in:
Yadunand Prem 2025-07-10 18:11:02 -04:00
parent ad14fccba8
commit 91d88c1305
No known key found for this signature in database
6 changed files with 118 additions and 17 deletions

21
.gitignore vendored Normal file
View File

@ -0,0 +1,21 @@
*
!.gitignore
!docker-compose.yml
!devenv.*
!biome.json
!docs/
!docs/**
!tui/
!tui/Cargo.*
!tui/src/
!tui/src/**
!api/
!api/.env
!api/.env.example
!api/package.json
!api/bun.lock
!api/tsconfig.json
!api/src/
!api/src/**

View File

@ -1,9 +1,11 @@
import { Hono } from 'hono'
import { Hono } from "hono";
import { logger } from "hono/logger";
const app = new Hono()
const app = new Hono();
app.get('/', (c) => {
return c.text('Hello Hono!')
})
app.use(logger());
app.get("/", (c) => {
return c.text("Hello Hono!");
});
export default app
export default app;

35
biome.json Normal file
View File

@ -0,0 +1,35 @@
{
"$schema": "https://biomejs.dev/schemas/2.1.1/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
"useIgnoreFile": false
},
"files": {
"ignoreUnknown": false
},
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"javascript": {
"formatter": {
"quoteStyle": "double",
"semicolons": "always"
}
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
}
}

View File

@ -3,10 +3,10 @@
"devenv": {
"locked": {
"dir": "src/modules",
"lastModified": 1749416335,
"lastModified": 1752088718,
"owner": "cachix",
"repo": "devenv",
"rev": "e8fffc7d61259f27c27b0fbe39a052a604807a2e",
"rev": "192a48f9f9f830ed0afacfa7540eb459111377a6",
"type": "github"
},
"original": {
@ -24,10 +24,10 @@
"rust-analyzer-src": "rust-analyzer-src"
},
"locked": {
"lastModified": 1751784058,
"lastModified": 1752043172,
"owner": "nix-community",
"repo": "fenix",
"rev": "632549aad97975cbcdf19d0cf291e5d107208e51",
"rev": "84802dd540bd6e41380aeae57713de334f0626b2",
"type": "github"
},
"original": {
@ -60,10 +60,10 @@
]
},
"locked": {
"lastModified": 1747372754,
"lastModified": 1750779888,
"owner": "cachix",
"repo": "git-hooks.nix",
"rev": "80479b6ec16fefd9c1db3ea13aeb038c60530f46",
"rev": "16ec914f6fb6f599ce988427d9d94efddf25fe6d",
"type": "github"
},
"original": {
@ -94,10 +94,10 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1746807397,
"lastModified": 1750441195,
"owner": "cachix",
"repo": "devenv-nixpkgs",
"rev": "c5208b594838ea8e6cca5997fbf784b7cca1ca90",
"rev": "0ceffe312871b443929ff3006960d29b120dc627",
"type": "github"
},
"original": {
@ -115,16 +115,17 @@
"nixpkgs": "nixpkgs",
"pre-commit-hooks": [
"git-hooks"
]
],
"rust-overlay": "rust-overlay"
}
},
"rust-analyzer-src": {
"flake": false,
"locked": {
"lastModified": 1751744599,
"lastModified": 1752028226,
"owner": "rust-lang",
"repo": "rust-analyzer",
"rev": "2d518c73d9a9de0dc96d013db7fd98b964f3a7de",
"rev": "e429bac8793c24a99b643c4813ece813901c8c79",
"type": "github"
},
"original": {
@ -133,6 +134,25 @@
"repo": "rust-analyzer",
"type": "github"
}
},
"rust-overlay": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1752028888,
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "a0f1c656e053463b47639234b151a05e4441bb19",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
}
},
"root": "root",

View File

@ -6,3 +6,8 @@ inputs:
follows: nixpkgs
nixpkgs:
url: github:cachix/devenv-nixpkgs/rolling
rust-overlay:
url: github:oxalica/rust-overlay
inputs:
nixpkgs:
follows: nixpkgs

18
docker-compose.yml Normal file
View File

@ -0,0 +1,18 @@
version: "3.8"
services:
postgres:
image: postgres:15
container_name: postgres-dev
environment:
POSTGRES_DB: system
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
volumes:
postgres_data: