Skip to main content
Version: Next

Setup Server-Side Backend

Install Package​

Install the Latest @neneys/ui Package from the Package Repository

bun install @neneys/ui

Setup Project Strucutre​

Project Root/
├── interfaces/
├── callbacks/
└── index.ts

Create Files​

import { NeneServer } from "@neneys/ui"

NeneServer({
port: 3500,
uiPath: "./interfaces",
verbose: true,
callbackPath: "./callbacks"
})

Run & Check​

Executing the index.ts Server.

bun index.ts

Check​

Run a Quick cURL Test​

curl http://localhost:3500/ui/main

You will see an JSON Response that directly corresponds to the interface code we just wrote.

We will continue to Components and Server-Side Callbacks Once we get the App Up and running!