Backend

There are two types of files in the backend.

  • Endpoints Endpoints are triggered by HTTP requests which your frontend can call. They must use optionalAuthentication (anyone can make a request, but if they're unauthenticated request.user is null), or requiredAuthentication (any unauthenticated user will be blocked).

  • Helpers Helpers are code that can be called by other helpers and endpoints. Put common code in a helper instead of duplicating it.

You can easily add templates to your backend to streamline your development process. For example, we have drop-in code for common use cases like

  • Charging customers with Stripe

  • Calling GPT

  • Interfacing with common third party APIs

Adding a template will automatically add several endpoints, helpers, and frontend components into your project.

Last updated