App, one route, an HTTP kernel, and a dart:io server.
Complete Installation first. The example assumes Archery is installed and
lib/src/config/server.json exists.Create the server entry point
Createbin/server.dart:
dart:io types.
Start the application
What the server is doing
AppConfig.create()loads JSON configuration fromlib/src/config.- The configuration repository is registered as an eager singleton.
app.boot()prepares the framework and its registered providers.Routerrecords theGET /healthhandler.StaticFilesServerreceives the first opportunity to serve a public asset.AppKernelsends every remaining request through middleware and route dispatch.
Project structure
Organize routes, views, configuration, and application code.
Architecture
Understand what happens during startup and each request.