← Quick start: run your first app

4. Preview and interact

installed luastra CLI · about 10 minutes
luastra run

Starts a watch-mode server on 127.0.0.1, prints the authoritative READY URL, and rebuilds after saved changes.

When to use it

Use this during development after check and test pass.

  • The page should show your edited title and a Continue button.
  • Each press updates module state through app.handle and the next render shows a larger interaction count.
  • Keep the terminal open while previewing; Ctrl+C stops the local server.

Focused example

luastra run
# Open the READY URL, press Continue, then stop with Ctrl+C.

Complete inventory

View all pages in Quick start: run your first app
← Previous: 3. Check and testNext: 5. Build the web target →