This is the official website for Juniauto, a towing and auto rescue service in Campo Grande, RJ. The project is built with Astro, React, and Tailwind CSS.
- Framework: Astro
- UI Library: React
- Styling: Tailwind CSS
- Testing: Playwright
- Quality/Audit: Lighthouse & Custom Scripts
- Node.js (v18 or higher recommended)
- npm (Node Package Manager)
-
Clone the repository:
git clone <repository-url> cd website
-
Install dependencies:
npm install
Start the local development server:
npm run devThe site will be available at http://localhost:4321.
To build the project for production:
npm run buildTo preview the production build locally:
npm run previewThis project includes scripts for performance and quality auditing using Lighthouse.
-
Run Lighthouse Audit:
npm run quality:audit
Runs a Lighthouse audit on the configured pages.
-
Analyze Report:
npm run quality:analyze
Analyzes the generated
lighthouse-report.json. -
Check Console Errors:
npm run quality:console
Checks for console errors during the audit process.
/
├── public/ # Static assets
├── scripts/ # Quality assurance and utility scripts
├── src/
│ ├── components/ # Reusable UI components (Astro/React)
│ ├── layouts/ # Page layouts
│ ├── pages/ # File-based routing
│ └── styles/ # Global styles
├── package.json # Project dependencies and scripts
└── astro.config.mjs # Astro configuration
Run end-to-end tests with Playwright:
npx playwright test