Apex-JS Ecosystem
Knowledge Base
Back to Tailwind 4 & OKLCH Theme Layers
Documentation Updated 2026-08-02 8 min read

Getting Started with ApexJS

Introduction and first steps for tailwind-integration.

By ApexJS Team

Introduction

ApexJS provides a structured environment for controllers, routes, views, state management, and application services.

Creating a controller

Controllers extend the core ApexJS controller and expose methods that can be connected to application routes.

const ApexJS = require('../../../lib/ApexJS');

class ExampleController extends ApexJS.Controller
{
  async index ()
  {
    this.layout = "apexjs";
    this.page = "example/index";

    return {
      title: "Example"
    };
  }
}

Registering the controller

ApexJS.StateManagement.AddController('example', ExampleController);