How ahmadomar/appgenerator works
AppGenerator is an ASP.NET MVC service for configuring, generating, compiling, theming, and publishing user applications. The main workflow starts with an application owner supplying database details and selecting tables; the application controller coordinates schema discovery and generated controllers/views, then project creation and optional compilation or Azure deployment. The README also documents project-file generation and theme selection. Several generator and deployment relationships are documented rather than fully visible in the excerpts, so those links cite the README or are omitted where ownership is unclear.
Main entry points: ApplicationController.cs Generation workflow · ThemesController.cs Theme selection · ControllerGenerator.cs Controller generation · MyGenerator.cs Schema discovery
Components 19
Web application
- Generation workflow
WebApp/AppsGenerator/Controllers/ApplicationController.cs - Account management
WebApp/AppsGenerator/Controllers/MemberController.cs - Theme selection
WebApp/AppsGenerator/Controllers/ThemesController.cs
Application generation
- Schema discovery
WebApp/AppsGenerator/Classes/Generator/MyGenerator.cs - Entity mapping
WebApp/AppsGenerator/Classes/Generator/EdmMapping.cs - Controller generation
WebApp/AppsGenerator/Classes/Generator/ControllerGenerator.cs - CRUD view generation
WebApp/AppsGenerator/Classes/Generator/ViewsGenerator.cs - Generated controllers
WebApp/AppsGenerator/CSharpGenerator/Web/MvcControllerWithContext/Controller.cs - Generated CRUD views
WebApp/AppsGenerator/CSharpGenerator/Web/MvcView - Project file output
WebApp/CSharpGenerator/Web/App/AppProj.cs - Theme assets
WebApp/AppsGenerator/App_Data/ApplicationFolders
Build and deployment
- Application compilation
WebApp/AppsGenerator/Classes/Publish/Compile.cs - Azure deployment
WebApp/AppsGenerator/Classes/Azure/WebDeploy.cs - Azure Websites
Application data
- Application records
WebApp/AppsGenerator/Models/Repositories/ApplicationRepository.cs - Member records
WebApp/AppsGenerator/Models/Repositories/MemberRepository.cs - Theme records
WebApp/AppsGenerator/Models/Repositories/ThemeRepository.cs
Other components
- Application owner
- Generated web app
Connections 18
- Application owner → Generation workflow: configures
WebApp/AppsGenerator/Controllers/ApplicationController.cs - Generation workflow → Schema discovery: discovers schema
WebApp/AppsGenerator/Controllers/ApplicationController.cs - Generation workflow → Controller generation: generates controllers
WebApp/AppsGenerator/Controllers/ApplicationController.cs - Schema discovery → Entity mapping: uses mappings
WebApp/AppsGenerator/Classes/Generator/MyGenerator.cs - Controller generation → CRUD view generation: invokes
WebApp/AppsGenerator/Classes/Generator/ControllerGenerator.cs - Controller generation → Generated controllers: renders
WebApp/AppsGenerator/Classes/Generator/ControllerGenerator.cs - CRUD view generation → Generated CRUD views: renders
- Generation workflow → Project file output: creates project
- Generation workflow → Application compilation: requests compilation
WebApp/AppsGenerator/Controllers/ApplicationController.cs - Generation workflow → Azure deployment: starts deployment
WebApp/AppsGenerator/Controllers/ApplicationController.cs - Azure deployment → Azure Websites: publishes to
- Project file output → Generated web app: packages project
- Application compilation → Generated web app: compiles
- Generation workflow → Application records: manages records
- Account management → Member records: manages members
WebApp/AppsGenerator/Controllers/MemberController.cs - Theme selection → Theme records: loads themes
WebApp/AppsGenerator/Controllers/ThemesController.cs - Application owner → Theme selection: chooses theme
- Theme selection → Theme assets: applies theme