This project is a full-stack application built with Next.js, TypeScript, and Material UI. It demonstrates the use of Next.js Pages Router with Material UI components in a TypeScript environment.
To get started with this project, follow these steps:
- Clone the repository.
- Install the dependencies with
npm install
. - Start the development server with
npm run dev
. - Make sure to set the
NEXT_PUBLIC_API_URL
andNEXT_PUBLIC_API_TOKEN
environment variables in a.env
file.
The application should now be running at http://localhost:3000.
This project includes:
- Material UI components for a consistent and attractive UI.
- Formik for form handling, with Yup for form validation.
- Integration with a backend API for fetching and updating data.
The project is structured as follows:
src/components/forms
: This directory contains all the form components used in the application, includingOrdersForm.tsx
,ProductForm.tsx
, andProductListForm.tsx
.src/components/modal
: This directory contains modal components for orders and products.src/service
: This directory contains theClient.ts
file, which handles all API requests.