1. Create your account
Navigate to localhost:3000 and click Sign Up. Complete the setup screens to configure your login details and preferences.2. Add your first account
Click + Add Account and select an account type:- Cash for checking/savings accounts
- Credit Card for credit cards
- Investment for brokerage accounts
- Loan for mortgages or other debts
3. Record a transaction
Go to Transactions in the sidebar and click + New Transaction. Choose a type:- Expense for spending money
- Income for receiving money
- Transfer for moving money between accounts
Next steps
Complete guide
Learn about account types, investment tracking, and advanced features
Self-hosting
Deploy Sure with Docker on your own infrastructure
Development setup
Want to contribute to Sure? Set up your local development environment. Run the full test suite after setup to confirm everything is working:username: (the Rails-documented key), so no authentication errors should appear.
The devcontainer runs pgvector/pgvector:pg16-trixie as its database image rather than plain postgres:16. This is a drop-in replacement that ships the vector extension, which supplies the vector-storage prerequisite for document import. You still need to configure the chosen vector-store and embedding provider; PDF statement processing also requires a suitable AI provider.
After running bin/setup, you can optionally load demo data with:
SKIP_CLEAR=1). To wipe all existing data first and start fresh, set SKIP_CLEAR=0:
Demo data is only available when running Sure in development mode, not in production or self-hosted deployments.
Coding conventions
Keep these conventions in mind when contributing code. Comments — write comments to explain non-obvious intent, constraints, and current behavior. Don’t use comments as an implementation diary or to record issue/PR history; put that context in commit messages and PR descriptions instead. Update or remove stale comments whenever you change the surrounding code. Ruby — two-space indentation,snake_case for methods and variables, CamelCase for classes.
JavaScript — lowerCamelCase for variables and functions, PascalCase for classes. Follow Biome for formatting and lint. Keep domain logic out of ERB templates.
Design system previews
Sure uses Lookbook to render component previews. After startingbin/dev, open /design-system in your browser to browse and preview all DS::* components.
The preview routes are only available outside of production. If a preview returns an error, confirm you are running in development mode.
Form action buttons
Use these conventions when adding action buttons to forms built with Sure’sstyled_form_with helper:
- A form with one action ends in
f.submit, which renders a full-width primaryDS::Button. Do not passclass:tof.submit— it is ignored. - A form with Cancel and a primary action ends in a right-aligned pair of natural-width buttons: Cancel (
variant: :secondaryor:ghost), then the primary (type: :submit). The variant carries the hierarchy, not the width.
- Do not use
f.submitin a pair — it is always full-width and ignoresclass:. Render the primary button explicitly withtype: :submitinstead. - A destructive single action uses
DS::Buttonwithfull_width: true,type: :submit, andvariant: :destructive—f.submitalways renders primary and cannot be used here. - Keep the default button size.
size: :smtext buttons are 28 px tall and the 44 px coarse-pointer target only applies to icon-only buttons. - When a
DS::Dialog’s buttons do not submit a form, usedialog.with_action. Passcancel_action: trueto make a button close the dialog. - Amount inputs stay left-aligned. Use
numeric: truefor displayed figures. Inputs inside a column of figures, such as the budget grid, can also be right-aligned.
Setup guides
Mac setup
Development setup guide for macOS
Linux setup
Development setup guide for Linux
Windows setup
Development setup guide for Windows
Dev containers
Use VS Code dev containers for isolated development