A Node.js web application server built with modern practices and clean architecture.
- Node.js >= 22.14.0
- pnpm >= 10.10.0
- Podman >= 4.0.0
- Podman Compose >= 1.0.0
pnpm install- Start the development dependencies (PostgreSQL):
podman-compose up -d- Start the development server with auto-reload:
pnpm devStart with specific log level:
LOG_LEVEL=debug pnpm devTo stop the development dependencies:
podman-compose downpnpm start- Start the production serverpnpm dev- Start the development server with auto-reloadpnpm test- Run all testspnpm test --watch- Run tests in watch mode, automatically re-running tests on file changes
podman build -t my-node-app .
ensure keys directory exists
mkdir keys
podman run -p 5680:5680 \
-e PORT=5680 \
-e HOST=0.0.0.0 \
-e DOMAIN=localhost:5680 \
-e POSTGRES_USER=user \
-e POSTGRES_PASSWORD=password \
-e POSTGRES_HOST=host.containers.internal \
-e POSTGRES_PORT=7891 \
-e POSTGRES_DB=serenity \
-e LOG_LEVEL=debug \
-e LOG_PII=true \
-e ENVIRONMENT=Development \
-e PRIV_KEY_PATH=/keys/private.pem \
-e PUB_KEY_PATH=/keys/public.pem \
-v $(pwd)/keys:/keys:z \
my-node-app