Documentation
¶
Overview ¶
Command arandu is the entry point of this application.
It is both halves of what is usually two artifacts, a front controller and a console script: the binary is the server, and the same binary is the command line. There is no front controller and no document root, because in Go the process listens itself.
Almost nothing is here. The wiring is bootstrap/app.go and the commands are bootstrap/console.go, for the reason Laravel's index.php is twenty lines: `main` cannot be imported, so anything living here is anything a test cannot reach -- and the tests worth having boot the whole application.
`aru serve` runs this binary with that argument, because only this binary knows which modules exist.
Directories
¶
| Path | Synopsis |
|---|---|
|
app
|
|
|
Http/Controllers
Package controllers holds this application's controllers.
|
Package controllers holds this application's controllers. |
|
Models
Package models holds this application's domain types.
|
Package models holds this application's domain types. |
|
Policies
Package policies holds this application's authorization decisions.
|
Package policies holds this application's authorization decisions. |
|
Providers
Package providers holds this application's own modules.
|
Package providers holds this application's own modules. |
|
Package assets carries what `aru view:build` compiled, into the binary.
|
Package assets carries what `aru view:build` compiled, into the binary. |
|
Package bootstrap composes the application.
|
Package bootstrap composes the application. |
|
Package config is this application's configuration, one file per domain: ten files, named after what they configure.
|
Package config is this application's configuration, one file per domain: ten files, named after what they configure. |
|
database
|
|
|
factories
Package factories builds domain objects with sensible values.
|
Package factories builds domain objects with sensible values. |
|
migrations
Package migrations holds this application's own schema changes.
|
Package migrations holds this application's own schema changes. |
|
seeders
Package seeders holds the database seeders of this project.
|
Package seeders holds the database seeders of this project. |
|
Package public serves the files a browser or a crawler asks for by a fixed path.
|
Package public serves the files a browser or a crawler asks for by a fixed path. |
|
Package routes is where this application declares what it answers.
|
Package routes is where this application declares what it answers. |
|
Package tests is the base every test in this project builds on.
|
Package tests is the base every test in this project builds on. |