Architecture
Database Architecture
The database layer handles data persistence and state management.
Setup
- Install PostgreSQL client:
# For macOS
brew install libpq
# For Ubuntu
sudo apt install libpq-dev postgresql-client
- Install database tools:
cargo install sea-orm-cli
- Initialize database:
just db reset
just db restart
Configuration
Default database configuration:
- Host: localhost
- Username: postgres
- Password: postgres
- Database: fermah
Production Setup
Make sure to use secure credentials in production environments.