A Next.js API-only project built with TypeScript.
Install dependencies:
pnpm installRun the development server:
pnpm devThe API will be available at http://localhost:3000.
API routes are located in src/app/api/. Example route:
GET /api/hello- Returns a hello message
pnpm dev- Start development serverpnpm build- Build for productionpnpm start- Start production serverpnpm lint- Run ESLint
.
├── src/
│ └── app/
│ └── api/ # API routes
├── next.config.ts # Next.js configuration
├── tsconfig.json # TypeScript configuration
└── package.json