Build Your First Admin App
Create an admin dashboard app.
Step 1: Create the Project
Create a new admin app with your usual toolchain (the CLI has no generator today):
Create App
Shell
npm create vite@latest inventory-pro -- --template react-ts
cd inventory-pro
npm install threeu-sdkStep 2: Authenticate & Use
Initialize the SDK and work with brand data:
Admin SDK Usage
TypeScript
import { ThreeuAdmin } from "threeu-sdk/admin";
const threeu = new ThreeuAdmin(process.env.THREEU_SECRET_KEY!);
const brand = await threeu.brand("my-store");
// List pending orders
const orders = await brand.orders.list({ status: "pending" });
// Create a product
const product = await brand.products.create({
name: "Black Abaya",
price: 350,
currency: "QAR",
stock: 20
});