Personal Finance for Hustlers - A personal finance application for people with W-2 income and side hustles.
Staqs is a full-stack personal finance application built with:
- Frontend: SvelteKit + TypeScript + TailwindCSS
- Backend: Node.js + Fastify + TypeScript
- Database: PostgreSQL 15 + Prisma
- Infrastructure: Docker + Docker Compose
- Docker and Docker Compose
- Node.js 20+ (for local development)
- PostgreSQL 15+ (or use Docker)
-
Clone the repository:
git clone https://github.com/HLLMR/staqs.git cd staqs -
Copy environment file:
cp .env.example .env
-
Configure environment variables: Edit
.envand set:POSTGRES_PASSWORD: Strong password for databaseJWT_SECRETandJWT_REFRESH_SECRET: Generate withopenssl rand -base64 32SMTP_*: Your email service credentialsFRONTEND_URLandAPI_URL: Your domain URLs
-
Start services:
docker compose up -d
-
Run database migrations:
docker compose run --rm backend npm run prisma:deploy
-
Seed default categories:
docker compose run --rm backend npm run prisma:seed
-
Access the application:
- Frontend: http://localhost:3000
- Backend API: http://localhost:4000
- Health check: http://localhost:4000/health
For local development without Docker:
Backend:
cd backend
npm install
npm run prisma:generate
npm run devFrontend:
cd frontend
npm install
npm run devstaqs/
├── backend/ # Node.js/Fastify API
├── frontend/ # SvelteKit application
├── database/ # Database initialization scripts
├── infrastructure/ # Deployment and setup scripts
├── docker-compose.yml
└── .env.example
- postgres: PostgreSQL 15 database
- backend: Fastify API server (port 4000)
- frontend: SvelteKit application (port 3000)
This project uses the staqs-network Docker network. To connect NGINX Proxy Manager:
docker network connect staqs_staqs-network nginx-proxy-managerThen configure the proxy to use staqs-web:3000 as the upstream (or staqs-web:80 if using the Node adapter).
- ARCHITECTURE.md - System architecture
- DEPLOYMENT.md - Production deployment guide
- API.md - API documentation
- DATA_MODEL.md - Database schema
- SECURITY.md - Security practices
- ROADMAP.md - Development roadmap and progress
- .reference/Staqs UI-UX Plan.md - Comprehensive UI/UX design plan
MIT