A Soli MVC application.
Start the development server with hot reload:
soli serve . --devYour app will be available at http://localhost:5011
Start the production server:
soli serve . --port 5011Or run as a daemon:
soli serve . -ddoc/
├── app/
│ ├── assets/
│ │ └── css/
│ │ └── application.css # Source CSS with Tailwind directives
│ ├── controllers/ # Request handlers
│ ├── models/ # Data models
│ └── views/ # HTML templates
│ ├── home/ # Home page views
│ └── layouts/ # Layout templates
├── config/
│ └── routes.sl # Route definitions
├── db/
│ ├── migrations/ # Database migrations
│ ├── seeds/ # Additional seed files (soli db:seed generate)
│ └── seeds.sl # Database seeds (soli db:seed)
├── public/ # Static assets (compiled output)
│ ├── css/
│ │ └── application.css # Compiled CSS (generated)
│ ├── js/
│ └── images/
├── tests/ # Test files
└── package.json # npm dependencies (Tailwind config is CSS-first, in application.css)
Generate a new migration:
soli db:migrate generate create_usersRun pending migrations:
soli db:migrate upRollback last migration:
soli db:migrate downCheck migration status:
soli db:migrate statusPopulate the database with sample or initial data. Edit db/seeds.sl (and add ordered
files under db/seeds/), then run:
soli db:seedSeeds are not tracked and re-run every time, so keep them idempotent (guard inserts with
first_by / find_by). Generate an additional ordered seed file:
soli db:seed generate demo_usersMIT