Track your money flow - personal finance app with beautiful charts and insights. Built with SvelteKit 2, Svelte 5, and Drizzle ORM.
git clone https://github.com/yourusername/svelte-finance.git
cd svelte-finance
bun install
bun run db:start
bun run db:push
bun run dev
| Command | Description |
|---|---|
bun run dev |
Start development server |
bun run build |
Build for production |
bun run preview |
Preview production build |
bun run check |
Type-check the project |
bun run lint |
Lint and format check |
bun run format |
Format code with Prettier |
bun run db:start |
Start PostgreSQL with Docker |
bun run db:push |
Push schema changes to database |
bun run db:generate |
Generate migration files |
bun run db:studio |
Open Drizzle Studio |
src/
āāā lib/
ā āāā components/ # Shared components
ā ā āāā ui/ # shadcn-svelte components
ā ā āāā ... # App components (sidebar, nav, etc.)
ā āāā features/ # Feature modules
ā ā āāā accounts/ # Account management
ā ā āāā budget/ # Budget tracking
ā ā āāā categories/ # Category management
ā ā āāā dashboard/ # Dashboard widgets
ā ā āāā reports/ # Financial reports
ā ā āāā transactions/# Transaction CRUD
ā āāā server/ # Server-only code
ā ā āāā db/ # Database schema & connection
ā āāā utils/ # Utility functions
āāā routes/ # SvelteKit routes
ā āāā accounts/
ā āāā budget/
ā āāā categories/
ā āāā dashboard/
ā āāā reports/
ā āāā transactions/
āāā drizzle/ # Database migrations
Create a .env file in the root directory:
DATABASE_URL=postgres://postgres:postgres@localhost:5432/finance
MIT