DocsStart building
On this page

Preview accounts, email and payments

Use the local admin area to verify a complete theme before publishing.

Before you begin: Local development.

What goes where

PathWhat you author or use
index.html, other HTML pages, CSS and JavaScriptYour website interface. Changes reload in the browser.
backend/index.frlSchemas, permissions, endpoints and automations.
backend/paths.jsonOptional clean URL mappings. See Theme routing.
backend/admin.jsonOptional custom administration pages. See Theme admin pages.
skins/Optional visual styles. See Theme skins.
.frontbacked/Local accounts, saved records, settings, uploads and other development data. Keep it out of Git.

Add .frontbacked/ and node_modules/ to your theme's .gitignore. Never commit real credentials or local account data.

Open the local administration area

Visit /fb-admin on your local server. On a fresh site, follow the setup flow to register the local administrator. This account belongs to your local site, so use development credentials.

Use the administration screens to inspect records, configure your theme, try editable page content and manage accounts. Create ordinary users too, then exercise the same pages as a guest, a signed-in user and an administrator. A hidden button does not protect data: enforce access in FRL.

Auth buttons for Google and GitHub use local simulated accounts. They do not require provider credentials. You can promote or demote simulated local accounts in the local account editor to check admin-only workflows.

Test forms and rules

  1. Declare the post schema and its permissions in backend/index.frl.
  2. Bind form fields to FQL state and validate with Frontbacked.state.check().
  3. Submit through FQL or a documented Frontbacked method.
  4. Inspect the saved result in the local administration area.
  5. Try invalid values, a signed-out visitor and a different user's account. Confirm the rule rejects them where appropriate.

Use Starter examples for forms and lists, Endpoints for custom actions, and Background jobs for longer workflows. The browser playground is useful for state, calculations and isolated rule checks; the local server lets you exercise a complete site.

Check email and verification codes

Open /__frontbacked/mailbox on your local server to read simulated email, including verification and password reset messages. Email stays local by default. Use development addresses and check the links and code-entry flow as well as the message content.

When you need to check actual email delivery, configure SMTP in the local administration area. This is optional; the mailbox works without an email service account.

Simulate payments

Open /__frontbacked/wallet for the local crypto simulator. Use it with your theme's payment flow to check deposits, payment confirmation, failures and the FRL payment events your theme handles.

Local payments are simulated. You do not need blockchain accounts, RPC services, faucets or real funds. Use the appropriate Frontbacked hosted preview when you need to verify a hosted payment integration before launch.

Calculate prices from trusted records in FRL. Test a repeated checkout request, an expired payment, a cancelled payment and a denied user, alongside the successful path. See Currencies and prices and Payments.

Change schemas and start fresh

After changing a schema, first check that new form values match its rules. Existing local records may still use the old shape.

In the local administration area's Local development bar, choose Clear local records when you want a fresh dataset. Choose Posts only or Posts, users, and related activity. A full reset removes admin accounts and signs everyone out; register an admin again afterward. Theme files, settings, billing configuration and uploaded files on disk are kept.

The server saves a backup in .frontbacked/database/backups/ before clearing records. Stop the server before restoring a backup. Keep .frontbacked/ when you want to preserve a development site across server updates.

Troubleshooting

SymptomWhat to check
The command is not foundReopen your terminal after installing and confirm npm's global executable directory is on your PATH.
The port is already in useStart with --port 3100 or another free port.
A page or rule cannot be foundStart the command from the theme root, not its parent repository or backend/ folder.
A form is rejectedRead the named field or permission error, then compare the submitted FQL state with your FRL schema.
Email is not in your real inboxSimulated messages are in /__frontbacked/mailbox unless you configured SMTP.
An upload works locally but fails in a published previewCheck the schema's file rules and any settings required by that site. Test the full flow in the hosted preview.

Before publishing

Check your theme on desktop and mobile, use the VS Code extension to catch authoring mistakes, then publish a preview version. Test hosted integrations and access rules there before making the version available for production use.