Skip to content

The Basics ​

Build an endpoint in Your First Route. Then follow the path of a request to see where each piece belongs.

Handle a Request ​

  1. Routing matches a request to a handler. Middleware applies policy around that handler.
  2. The handler reads the request, validates its input, and passes it to an application service.
  3. The handler turns the result into a response. Use URL Generation when it needs a location to return.

Manage Browser State ​

Session explains how GoForj keeps a user signed in. Cookies covers state the browser sends on later requests. Use CSRF Protection for actions that use cookies to authenticate.

Diagnose Requests ​

Error Handling covers what the app returns when work fails. Use Logging to record what happened and Tracing to follow a request across services.

Digging Deeper ​

Use the Digging Deeper sidebar to add capabilities such as Cache, Feature Flags, or Queues. If you're choosing between queued work, events, and schedules, start with Background Work.

Read request inputs in the App from your first route. Then add a POST endpoint and test the registered routes.