Marketing Monitor System (MMS) provides a set of Just commands for development workflow automation.
Install required development tools:
just installThis 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 serverBuild and run production server:
just pre-serverGenerate a new migration file:
just gen-migration <table_name>Generate entity modules from database schema:
just gen-entityClean generated entity files:
just clean-entityRun 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