This is a Next.js project set up for backend development and testing. The project includes TypeScript support, API routes, and a clean project structure.
- ✅ Next.js with App Router
- ✅ TypeScript support
- ✅ ESLint configuration
- ✅ API routes for backend functionality
- ✅ Development server with Turbopack
First, run the development server:
npm run devOpen http://localhost:3000 with your browser to see the result.
GET /api/hello- Basic API endpoint with optional name parameterPOST /api/hello- POST endpoint that echoes received dataGET /[slug]- Dynamic route example
src/
├── app/
│ ├── api/
│ │ └── hello/
│ │ └── route.ts # API endpoint
│ ├── [slug]/
│ │ └── route.ts # Dynamic API route
│ ├── layout.tsx # Root layout
│ ├── page.tsx # Home page
│ └── route.ts # Root API route
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
This directory contains example API routes for the headless API app.
For more details, see route.js file convention.