A clean, minimal starter template for Nuxt 3 applications with Tailwind CSS.
This template implements a clean service layer architecture:
# Clone the repository
git clone https://github.com/efesozen/vue-starter-template.git
# Navigate to the project
cd vue-starter-template
# Install dependencies
npm install
# Start development server
npm run dev
βββ assets/ # Static assets
βββ components/ # Vue components
β βββ Common/ # Reusable UI components
β βββ Filter/ # Filter components
βββ composables/ # Vue composables
βββ layouts/ # Page layouts
βββ middleware/ # Route middleware
βββ pages/ # Application pages
β βββ examples/ # Example implementations
βββ plugins/ # Nuxt plugins
β βββ mock/ # Mock services for demo mode
βββ public/ # Public static assets
βββ schemas/ # Validation schemas
βββ services/ # API services
βββ stores/ # Pinia stores
The template includes an example βPostβ data model to demonstrate:
This template includes a built-in mock API for development and demo purposes.
Mock API is enabled by default for easier getting started. To use:
john@example.comYou can toggle between mock and real API in nuxt.config.ts:
runtimeConfig: {
public: {
useMockApi: true, // Set to false to use real API
}
}
Or using environment variables:
USE_MOCK_API=false npm run dev
For detailed documentation, see the /docs directory:
This template is configured for GitHub Pages deployment. When you push to the main branch, GitHub Actions will automatically build and deploy the site to GitHub Pages.
To enable GitHub Pages in your repository:
The site will be available at https://[username].github.io/vue-starter-template/
MIT