Prerequisites
Before you begin, ensure you have the following installed on your system:- Node.js (v18 or higher)
- pnpm (v10.25.0 or higher)
- Docker and Docker Compose
- Git
BudgetBee uses pnpm as its package manager. Make sure you have the correct version installed:
[email protected]Quick Setup
The fastest way to get started is using the Makefile:Run the setup command
- Install all dependencies with
pnpm install - Create
.envfile and symlink it to all packages - Start PostgreSQL and PostgREST containers
- Create database roles and run migrations
- Fetch JWKS secret and update
.env
Manual Setup
If you prefer to set up manually or the automated scripts fail:Create environment file
.env file at the root and symlinks it to all packages that need environment variables.Create database roles
Create three PostgreSQL users with appropriate permissions:Add these user names to your
.env file.Run migrations
Run each migration file in
packages/core/migrations in order:better-auth-migrations.sqlinit.sql- All other migration files sorted by date
Available Make Commands
BudgetBee includes a Makefile with helpful commands:Adding Dummy Data
For testing purposes, you can populate the database with dummy data:Make sure to set
DEV_ONLY_TEST_USER_ID in your .env file to your user ID before running this command.Troubleshooting
Scripts are failing
The automation scripts can be flaky. If they fail, follow the manual setup steps instead.PostgreSQL connection issues
Ensure your Docker containers are running:Missing environment variables
Check that all required variables in.env are set, especially:
- Database connection strings
- PostgreSQL user credentials
- Application URLs
Next Steps
Project Structure
Learn about the monorepo structure and organization
Code Guidelines
Review coding standards and best practices
Getting Help
If you get stuck:- Email: [email protected]
- Twitter: @sammaji15
- GitHub Issues: budgetbee/issues

