using Astralis; using Inversion; using Statum; using Example; void main(string[] args) { int port = args.length > 1 ? int.parse(args[1]) : 8080; try { var application = new WebApplication(port); application.use_compression(); application.add_module(); var statum = application.configure_with(); // HomePage is generated from home.html; HomeEntrypoint hydrates it and // embeds the login/bump action references. Actions are auto-mapped to // GUID endpoints; the Statum client scripts are embedded by default. statum.add_entrypoint_page(new EndpointRoute("/")); statum.add_entrypoint_page(new EndpointRoute("/dashboard")); statum.action(); statum.action(); statum.action(); statum.add_resource(); application.run(); } catch (Error e) { printerr("Error: %s\n", e.message); Process.exit(1); } }