|
|
1 dag geleden | |
|---|---|---|
| app | 1 dag geleden | |
| core | 1 dag geleden | |
| db/migrations | 1 dag geleden | |
| public | 1 dag geleden | |
| scripts | 1 dag geleden | |
| .gitignore | 1 dag geleden | |
| AGENTS.md | 1 dag geleden | |
| CLAUDE.md | 1 dag geleden | |
| README.md | 1 dag geleden | |
| Universal-Agent-Memory-Specification.md | 1 dag geleden | |
| docker-compose.yml | 1 dag geleden | |
A clean starting point for Classic ASP applications on AxonASP, a Go-based Classic ASP / VBScript 5.8 runtime. It ships a small MVC framework (router, controllers, views, flash messages, CSRF helper), a SQLite data layer on the native G3DB library, migrations, and code generators for tables, repositories, HTML controllers and JSON APIs.
No sample modules are included: the first table you add is yours.
Requires Docker.
cd deploy
docker compose up -d --build
Open http://localhost:8801. The compose file mounts this folder into the container and serves public/.
After editing ASP code, restart the container so cached scripts are recompiled: docker restart axonasp.
public/ web root: Default.asp (front controller + routes), web.config (rewrite, settings)
core/ framework: mvc.asp, router, DAL (G3DB), migrations, JsonLite, helpers, lib.*.asp
app/
controllers/ <Name>Controller.asp (HTML), Api<Name>Controller.asp (JSON), autoload_controllers.asp
models/ POBO_<Table>.asp, <Table>Repository.asp (generated), autoload_models.asp
views/ <Name>/ views; shared/ layout (header, footer); Home, Error, Docs
db/
migrations/ YYYYMMDDHHMMSS_name.asp (Migration_Up / Migration_Down)
app.sqlite created by the first migration run (git-ignored)
scripts/ gen.cmd (generators), migrate.cmd, templates/
(deploy/ with the Dockerfile and docker-compose.yml currently sits next to this folder, outside this git repo)
All commands run from this folder on Windows and execute inside the container through the AxonASP CLI. Run gen.cmd controller from PowerShell or cmd (not Git Bash).
scripts\gen.cmd migration create_things_table, edit Migration_Up / Migration_Down, then scripts\migrate.cmd up (also status, down).scripts\gen.cmd api /table:Things /pk:Id. This writes the model and repository, ApiThingsController.asp, wires the includes, controller whitelist and routes (/api/things), and creates public/api/things.openapi.json and api-tests/things.http.scripts\gen.cmd controller Things Index "Show(id)" NewForm Create "Edit(id)" "Update(id)" "Delete(id)" creates a stub controller and wires it; fill in the actions and add views under app/views/Things/.docker restart axonasp, then try it.The Swagger UI at http://localhost:8801/api/docs lists every generated API spec and lets you call the endpoints.
//api/docspublic/web.config: ConnectionString (sqlite:/opt/axonasp/site/db/app.sqlite), environment and UI settings.deploy/app/config/axonasp.toml: server settings; any key can be overridden with an environment variable (see deploy/docker-compose.yml).See AGENTS.md at the repository root: language rules, AxonASP quirks verified in this project, security checklist and working rules.
Powered by TurnKey Linux.