← Recipe: call a server function

1. Create the project

generated Luau client · trusted JavaScript handler · about 25 minutes
luastra create server-recipe

Create a starter, then add the backend declaration and handler before generating the client module.

When to use it

Run this in the directory that should contain the new project. The backend directory holds trusted code that is separate from client Luau.

Focused example

luastra create server-recipe
cd server-recipe
mkdir backend

Complete inventory

View all pages in Recipe: call a server function
Next: 2. Replace luastra.json →