Skip to Content
Rock8Cloud
Blueprints

Next.js - Blueprint

Pure Next.js app with pages, search and a JSON API, no database

A pure Next.js starter with no database. It is a small explorer app with a searchable list, a detail page per item and a read-only JSON API, served from typed data in the repository.

Tech stack:

LayerTechnology
FrameworkNext.js App Router
FrontendReact, server components by default
StylingTailwind CSS
DataA typed file in the repository
LanguageTypeScript

The application runs on port 3000 and needs no environment variables.

View on GitHub →

Routes

PathWhat it does
/The list with a search box and type filters
/targets/{slug}Detail page of one item
/aboutWhat the starter contains and where to edit it
/api/targetsThe list as JSON, supports ?type= and ?q=
/api/targets/{slug}One item as JSON
/api/healthHealth check

Project Structure

app/          pages and API routes
components/   shared React components
data/         the typed data the app shows
lib/          filtering, lookup and formatting helpers
  • The data lives in data/targets.ts. Edit it and push to change what the app shows.
  • Only the search and filter control is a client component. Everything else renders on the server.
  • When the app needs to store data, add a database in the project and read it from a server component or a route handler.

Running Locally

npm install
npm run dev

With Docker

docker compose up --build

On this page