Templates
Blank Template
Start from an empty Nextly config and define your own schemas.
The Blank template scaffolds a minimal Nextly project with no collections or singles defined. You get the full Next.js App Router setup, the admin route, the standard environment configuration, and an empty nextly.config.ts ready for you to fill in. It's the starting point when you want to design your schema from scratch.
Scaffold
pnpm create nextly-app my-app --template blanknpx create-nextly-app@latest my-app --template blankyarn create nextly-app my-app --template blankbun create nextly-app my-app --template blankWhat it ships
- Empty
nextly.config.tswithcollections: []andsingles: []. Add definitions here as you build. - Standard Next.js App Router setup -- root
layout.tsx,page.tsx,globals.css, and afavicon.ico. The landing page is a simple "Welcome" screen with a link into the admin. - Generated admin route at
src/app/admin/[[...params]]/. The page wires upRootLayout,QueryProvider,ErrorBoundary, and the form-builder plugin's CSS imports. The layout reads admin branding fromnextly.config.tsand injects the resulting CSS variables. - Health and media routes under
src/app/api/. - Default
next.config.tswith the canonicalserverExternalPackageslist. See Project Structure for the full list and what each entry does. - Default
.env.examplewithDB_DIALECT,DATABASE_URL,NEXTLY_SECRET,NEXT_PUBLIC_APP_URL, and a storage block populated based on the storage option you picked in the CLI. - Generated
nextly-types.tsstub undersrc/types/generated/so type generation has a destination on first run.
File tree
my-app/
├── src/
│ ├── app/
│ │ ├── admin/
│ │ │ ├── [[...params]]/
│ │ │ │ ├── layout.tsx
│ │ │ │ └── page.tsx
│ │ │ └── api/
│ │ │ └── [[...params]]/
│ │ │ └── route.ts
│ │ ├── api/
│ │ │ ├── health/
│ │ │ │ └── route.ts
│ │ │ └── media/
│ │ │ └── [[...path]]/
│ │ │ └── route.ts
│ │ ├── favicon.ico
│ │ ├── globals.css
│ │ ├── layout.tsx
│ │ └── page.tsx
│ └── types/
│ └── generated/
│ └── nextly-types.ts
├── public/
├── .env
├── .env.example
├── eslint.config.mjs
├── next.config.ts
├── nextly.config.ts
├── package.json
├── postcss.config.mjs
└── tsconfig.jsonNext steps
- Installation -- Create your super-admin account on first run.
- Quick Start -- Build something concrete (a blog with posts and categories) to learn the API.
- Configuration -- Define your first collections and singles in
nextly.config.ts.