git clone https://github.com/squadbase/crm.git
cd crmnpm installcp .env.example .envEdit the .env file to set up the environment variables.
# These are the default value the docker-compose.yml file uses.
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_USER=postgres
POSTGRES_PASSWORD=password
POSTGRES_DATABASE=crm_db
LANGUAGE=en
CURRENCY=usdFor more information about language and currency, see Internationalization.
npm run db:up # Start database
npm run dev # Start the development serverThe development environment uses docker-compose to install PostgreSQL. Use the following commands for database operations:
npm run db:up # Start database
npm run db:down # Stop database
npm run db:restart # Restart database
npm run db:migrate # Run migrations
npm run db:seed # Insert seed dataSet up Claude Code to start using the system immediately.
MCP Servers in use:
- Playwright
- Context7
Use these custom slash commands to build databases following unified rules:
/project:db:spec # Build database specifications (docs/database.md)
/project:db:define # Build database table definitions (src/lib/db/schema.ts)
/project:db:migrate # Run migrations (drizzle-kit migrate)