Quick Start
Get the Pizza Chef Frontend application running on your local machine in just a few minutes.Prerequisites
Before you begin, ensure you have the following installed:- Node.js v18 or higher
- npm, yarn, or pnpm package manager
Installation and Setup
Start the Development Server
Launch the development server with Hot Module Replacement (HMR):The application will start on
http://localhost:5173 by default.Open in Browser
Navigate to http://localhost:5173 in your web browser to see the Pizza Chef application.
What’s Next?
Now that you have the application running, you can:- Browse the Menu: Explore the pizza catalog with filtering and sorting options
- Create Custom Pizzas: Use the pizza builder form to create your own pizzas
- Place Orders: Add pizzas to your cart and complete orders
- View Analytics: Check out the business intelligence dashboard for insights
Available Scripts
The project includes several npm scripts for development:| Script | Command | Description |
|---|---|---|
| dev | npm run dev | Start development server with HMR |
| build | npm run build | Build for production with TypeScript compilation |
| preview | npm run preview | Preview production build locally |
| test | npm run test | Run tests with Vitest |
| test:ui | npm run test:ui | Run tests in interactive UI mode |
| lint | npm run lint | Lint code with ESLint |
Running Tests
The project uses Vitest for testing. To run the test suite:Building for Production
To create an optimized production build:- Run TypeScript compilation (
tsc -b) - Bundle the application with Vite
- Output optimized assets to the
dist/directory