Test Project rev 2634

Your Rooster application is up and running.

Project management

This project is managed by Lucy. Use it to track cards, run tests, and browse documentation.

Open Lucy

Adding a new page

  1. Create an HTML template in app/frontend/html/
  2. Create an endpoint in app/backend/endpoints/
  3. Add a route in app/backend/includes/routes.php
// routes.php
return [
    '/'         => "$endpoints_dir/home.php",
    '/about/'   => "$endpoints_dir/about.php",   // add your route
];

Adding an API endpoint

  1. Create a handler in app/backend/endpoints/
  2. Add a route prefixed with @
  3. Use gi() for input, exec_query() for DB, ok() to respond
// app/backend/endpoints/api/greet.php
$name = gi('name');
ok(['message' => "Hello, $name"]);

Learn more

Open the Documentation tab in Lucy to read the full Rooster Framework reference — covering routing, database access, validation, templating, and more.