Marketing Monitor System (MMS) provides a set of Just commands for development workflow automation.
Install required development tools:
just install
This will install:
- cargo-watch: For auto-reloading development server
- sea-orm-cli: For database migrations and entity generation
Run development server with auto-reload:
just server
Build and run production server:
just pre-server
Generate a new migration file:
just gen-migration <table_name>
Generate entity modules from database schema:
just gen-entity
Clean generated entity files:
just clean-entity
Run migration commands:
just migrate <command>
Where <command>
can be:
- up: Apply all pending migrations
- down: Revert last migration
- fresh: Drop all tables and reapply migrations
- reset: Revert all migrations then reapply
- status: Show migration status