Getting started
Create a production-ready WRNexusJS application with Bun.
1. Create the project
bunx @wrnexus/cli create my-app
cd my-app
bun install
bun run dev2. Add a page
page Dashboard {
state count = 0
view {
<main>
<h1>Dashboard</h1>
<button @click="count++">{count}</button>
</main>
}
}3. Verify and build
wrnexus doctor
wrnexus test
wrnexus buildWhere things live
app/pagescontains routes.app/componentscontains reusable .wrn components.app/apicontains server API handlers.app/layoutscontains shared shells.app/middlewarecontains request middleware.wrnexus.config.tsconfigures security, styles, data, mobile, and deployment.