Modern Vue 3 frontend SPA built with Nuxt 4 and Nuxt UI Pro.
- Node.js 24.0.0 or higher
- npm
# Install dependencies
npm install
# Copy environment template
cp .env.example .env
# Start development server
npm run devThe application will be available at http://localhost:3000
nuxt-app/
├── app/
│ ├── app.config.ts # Application config
│ ├── app.vue # Root component
│ ├── assets/ # CSS and static assets
│ ├── layouts/ # Page layouts
│ └── pages/ # Route pages
├── public/ # Static files
├── .env # Environment variables
└── nuxt.config.ts # Nuxt configuration
Create .env file with:
NUXT_PUBLIC_BACKEND_URL=http://localhost:8080# Start development server
npm run dev
# Build for production
npm run build
# Generate static site
npm run generate
# Preview production build
npm run preview- Styling: Modify
app/assets/css/main.cssfor global styles - Layout: Edit
app/layouts/default.vuefor default layout - Routes: Add pages in
app/pages/(file-based routing) - Config: Update
nuxt.config.tsfor Nuxt settings - Backend URL: Change
NUXT_PUBLIC_BACKEND_URLin.env
| Technology | Version | Purpose |
|---|---|---|
| Node.js | 24.0.0+ | Runtime |
| Nuxt | ^4.0.1 | Framework |
| Vue | 3 | UI Framework |
| Nuxt UI Pro | ^3.3.0 | Component library |
| TypeScript | - | Type safety |
| Tailwind CSS | - | Styling |
Cannot connect to backend:
Check that:
NUXT_PUBLIC_BACKEND_URLin.envpoints to your backend- Backend is running on the specified port
- CORS is configured correctly in backend
Module resolution errors:
rm -rf node_modules package-lock.json
npm installBuild errors:
rm -rf .nuxt .output
npm run dev