MVC-Starter - Development Guide
Date: 2026-03-11T11:59:39Z
Prerequisites
- Windows environment
- IIS with Classic ASP enabled
- IIS URL Rewrite module
- Microsoft Access Database Engine
- Windows Script Host (
cscript)
Local Setup
- Place the project on a Windows machine with IIS.
- Point the site root to
public/.
- Update
public/web.config for the correct database and logging paths.
- Browse to
/ and confirm the starter home page renders.
Common Workflows
Add a database-backed feature
- Generate a migration
- Generate POBO/repository
- Move generated files into
app/models/ and app/repositories/
- Generate a controller
- Include the controller from
app/controllers/autoload_controllers.asp
- Register the controller in
core/lib.ControllerRegistry.asp
- Add routes in
public/Default.asp
- Add corresponding views in
app/views/
Useful Commands
cscript //nologo scripts\generateMigration.vbs create_my_table
cscript //nologo scripts\GenerateRepo.vbs /table:my_table /pk:id
cscript //nologo scripts\generateController.vbs MyController "Index;Show(id)"
cscript //nologo scripts\runMigrations.vbs status
Testing Approach
- Manual runtime validation through IIS
- Manual route/layout verification after controller or view changes
- Script validation through
cscript
- No built-in automated test suite detected
High-Risk Change Areas
public/Default.asp
public/web.config
core/mvc.asp
core/lib.ControllerRegistry.asp
- shared layout files under
app/views/shared/