This is a simple React application that simulates the fetching and showing of shipment offers. Please note that fakeFetcher returns same dataset everytime.
MUI for basic styling, TanstackQuery for server side state management and Zod for validation of filters and fake API response.
Screen.Recording.2024-02-25.at.06.31.37.mov
To get started with this project, follow these steps:
- Node.js installed on your machine. You can download it here.
- Clone this repository to your local machine:
git clone <repository-url>
- Navigate into the project directory:
cd <project-directory>
- Install dependencies using npm:
npm install
To run the development server and view the project in your browser, run the following command:
npm run dev
This command starts the development server and shows the URL to open. Any changes you make to the source files will be hot-reloaded, allowing for a smooth development experience.
To build the project for production, run:
npm run build
This command generates an optimized build of your application in the dist
directory.
The project structure is as follows:
├── public/ # Public assets
├── src/ # Source code
│ ├── pages/ # App Pages
│ ├── api/ # API related hooks and utils
│ ├── utils/ # Common utils
│ ├── App.tsx # Main application component
│ └── main.tsx # Entry point for the application
├── .gitignore # Git ignore file
├── package.json # NPM package configuration
└── README.md # This README file