This is a template repository showcasing Next.js Server Actions, React Server Components, and modern data fetching patterns. The project includes a Todo list implementation and examples of API integration with proper loading states and error handling.
- Todo List: Server-side data mutations using Next.js Server Actions
- Data Fetching Example: Demonstrates React Suspense and loading states
- Modern UI: Built with Shadcn UI components and Tailwind CSS
- Error Handling: Proper error boundaries and user feedback
- Type Safety: Full TypeScript support
- Next.js - React framework
- Shadcn UI - Component library
- Tailwind CSS - Styling
- TypeScript - Type safety
- Clone the repository
- Install dependencies:
npm install
# or
yarn install
# or
pnpm install-
Set up your environment variables in the
.envfile. -
Start the development server:
npm run dev
# or
yarn dev
# or
pnpm devOpen http://localhost:3000 with your browser to see the application.
app/page.tsx- Main page with Todo list implementationapp/example/page.tsx- Data fetching example with loading statesapp/actions/*- Server Actions for data mutationscomponents/ui/*- Shadcn UI components
To learn more about the technologies used in this project:
- Next.js Documentation - Next.js features and API
- Server Actions - Learn about Next.js Server Actions
- Shadcn UI Documentation - Learn about Shadcn UI components
- Tailwind CSS Documentation - Learn about Tailwind CSS
The easiest way to deploy your Next.js app is to use the Vercel Platform.
Check out the Next.js deployment documentation for more details.