DocsStart building
On this page

Local development

Run a complete theme on your computer with frontbacked-server. Test pages, FQL, FRL permissions, forms, uploads and account flows together before publishing.

Install or update

Install Node.js 22.13 or newer on the 22.x line, or Node.js 24 or newer, with npm. Then install the latest server:

bash

Run the same install command when you want to update. Your theme files and local site data live in the theme folder, separately from the installed command.

Create a starter in an empty folder

bash

A completely empty folder receives Studio, a styled starter with working pages for state bindings, accounts, private notes, uploads, payments, background jobs, editable content, and light/dark skins. Open http://localhost:3000 and explore the pages. The generated README explains where each example lives.

Sign up with email, Google, or GitHub. The provider buttons use simulated accounts locally. For the payment example, first enable a payment method in Site administration → Billing, then complete checkout with the local wallet.

Generation happens only when the folder has no entries at all, including hidden files. A folder containing .git, .gitignore, or .DS_Store is already nonempty. Existing projects are served as they are; the command does not add starter pages or replace your files. Create the starter before running git init.

You can use the latest server without a global installation:

bash

The starter also includes a project-local option. Run npm install once, then npm run dev. Add a port with npm run dev -- --port 3100.

Start a theme

Open a terminal in the folder that contains your theme's HTML files and backend/ folder:

bash

Visit http://localhost:3000. Choose a different port when another app already uses it:

bash

Visit http://localhost:3100 in that case. Press Ctrl+C to stop the server. Run each theme from its own root folder and use different ports when running several themes. A root can be the repository root or any nested folder.

Your pages should use the published Frontbacked script and the same API path locally and after publishing:

index.html

Keep the version in your source explicit. When adopting a newer script, test your theme and publish the updated HTML with it.

Continue with Preview accounts, email and payments.