This is a Next.js project bootstrapped with create-next-app
that demonstrates form handling and user management.
- User registration form with validation using React Hook Form and Yup
- User profile management (view, edit, delete)
- State management with Zustand
- Styled components for UI styling
- API integration with external JSON server
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
This project has been migrated from a React Router (v6/v7) structure to Next.js App Router. The main changes include:
- React Router routes have been converted to Next.js file-based routing
- Components are now organized in the
/app
directory following Next.js conventions - Route parameters use the
[param]
syntax instead of the:param
syntax - Links use Next.js
Link
component instead of React Router's
/app
- Main application code with Next.js App Router structure/components
- Reusable UI components/form
- User registration page/profile
- User profile management page
/lib
- Utility functions and state management (Zustand store)middleware.ts
- Next.js middleware for request handling
Route | Description | File Path |
---|---|---|
/ | Home page | /app/page.tsx |
/form | Registration form | /app/form/page.tsx |
/profile | User profiles | /app/profile/page.tsx |
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.