This guide walks you through everything needed to run a fully functional Monza Motors development environment on your local machine. By the end you will have the Next.js dev server running with Supabase authentication, the Stripe checkout flow, and the Groq AI assistant all active and connected to your own service accounts.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Jason-AML/MonzaSport-Nextjs/llms.txt
Use this file to discover all available pages before exploring further.
Create the environment file
Create a Then open
.env.local file in the project root and populate it with your credentials. See the Environment Variables reference for a full description of each key..env.local and add the following variables:.env.local
Set up Supabase tables
Monza Motors requires four tables to exist in your Supabase project before the application will work correctly.
Refer to the Supabase Setup guide for the full schema, RLS policies, and storage bucket configuration.
| Table | Purpose |
|---|---|
vehiculos | Stores vehicle records (name, price, images, specs) |
fabricas | Stores manufacturer / brand data linked to vehicles |
messages | Persists AI chat message history per user |
stored | Stores saved or favourited vehicles per user |
Start the development server
Open the app
Navigate to http://localhost:3000 in your browser. You should see the Monza Motors home page with the navigation bar, footer, and floating action bar rendered.
Available Scripts
The following scripts are defined inpackage.json and available via your package manager.
| Script | Command | Description |
|---|---|---|
| Dev server | npm run dev | Starts Next.js in development mode with HMR |
| Production build | npm run build | Compiles and optimises the app for production |
| Start production | npm run start | Runs the compiled production build locally |
| Lint | npm run lint | Runs ESLint across the project source files |