2.3 KiB
Contributing to Finance Manager
Thank you for your interest in contributing!
Getting Started
Prerequisites
- Node.js 20+
- pnpm 10+
- SQLite 3
Setup
git clone https://github.com/Komediruzecki/finance-manager.git
cd finance-manager
pnpm install
Development
This is a monorepo with two main workspaces:
frontend/— SolidJS SPA with Vitebackend/— Node.js/Express API server
# Start backend (port 3847)
cd backend && node index.js
# Start frontend dev server (port 5173)
pnpm run dev
Workflow
-
Find an issue — Pick an open issue from GitHub Issues, or open one to discuss your idea first
-
Create a feature branch — Branch off
main:git checkout -b feat/issue-NUMBER-short-descriptionUse branch prefixes:
feat/,fix/,refactor/,docs/,chore/ -
Make changes — Follow the code style and write tests
-
Commit — Use Conventional Commits:
git commit -m "feat: add transaction search" git commit -m "fix: resolve pagination off-by-one" -
Push and open a PR — Open a pull request against
main -
CI must pass — Lint, typecheck, build, and tests must all pass before review
Testing
pnpm run test # Run all tests
pnpm run test -- --watch # Watch mode
npx jest <path> # Run specific test file
Tests require the backend server running on port 3847 with NODE_ENV=test.
The test database (db/test.db) is reset automatically between test files.
Run pnpm run test once to initialize the test database before running individual tests.
Code Style
- TypeScript for frontend code
- ESLint + Prettier configured — run
pnpm run lintbefore committing - Follow existing patterns in the codebase
Pull Request Guidelines
- Keep PRs focused on a single change
- Include a clear description of what changed and why
- Link to the issue being resolved
- Ensure all checks pass before requesting review
Reporting Bugs
Open an issue with:
- Steps to reproduce
- Expected vs actual behavior
- Browser and OS details
- Any relevant console errors
Questions?
Open a discussion or ask in an issue.