An open API service indexing awesome lists of open source software.

https://github.com/heydayle/nuxt4-boilerplate

Nuxt 4 starter - clean, fast, and scalable by Vite + Tailwind CSS + Nuxt UI + ESLint + Prettier + Testing (Vitest + Playwright) โ€” everything you need to kickstart a modern Nuxt project ๐Ÿš€
https://github.com/heydayle/nuxt4-boilerplate

nuxt nuxt3-template nuxt4 nuxt4-starter taiwindcss vue

Last synced: 2 months ago
JSON representation

Nuxt 4 starter - clean, fast, and scalable by Vite + Tailwind CSS + Nuxt UI + ESLint + Prettier + Testing (Vitest + Playwright) โ€” everything you need to kickstart a modern Nuxt project ๐Ÿš€

Awesome Lists containing this project

README

          

![img](/public/cover.png)

# ๐Ÿš€ Nuxt 4 Boilerplate / Nuxt 4 starter

Kickstart Your **Nuxt** Project โ€“ **Preconfigured**, **Optimized**, **Ready to Code**, **Easy config**!

*Ready-to-use* framework for **Nuxt** projects, pre-configured framework with essential libraries and tools, streamlining development and ensuring a clean, structured codebase.

[--> [Live Demo](https://nuxt-boilerplate-template.vercel.app/) <--]

## Features

- [x] ๐Ÿš€ **[Nuxt 4](https://nuxt.com)** - Powerful Vue.js framework with high performance
- [x] ๐Ÿ“ **[Nuxt UI v3](https://ui.nuxt.com/getting-started)** - Fully styled and customizable components for Nuxt
- [x] ๐ŸŽจ **[TailwindCSS v4](https://tailwindcss.com/)** - Utility-first CSS framework for rapid design
- [x] ๐ŸŒ **[i18n](https://i18n.nuxtjs.org/)** - Multilingual support
- [x] English
- [x] Vietnamese
- [x] ๐Ÿ” **[Next-auth](https://authjs.dev/)** - Built-in authentication system
- [x] ๐Ÿ“Š **[Pinia](https://pinia.vuejs.org/)** - Global state managemen
- [x] ๐Ÿ›  **[VueUse](https://vueuse.org/)** - Collection of Essential Vue Composition Utilities
- [x] ๐Ÿช„ **ESLint** - All-in-one ESLint integration for Nuxt
- [x] ๐Ÿงช **Testing** - [Vitest](https://vitest.dev/) support for unit and integration tests, [Playwright](https://playwright.dev/) for e2e test.
- [x] ๐Ÿ” **SEO Friendly** - Optimized for search engines

## System Requirements

- Node.js 18.x or higher
- npm or yarn or pnpm (recommend)

## Installation

```bash
# Clone repository
git clone https://github.com/heydayle/nuxt-boilerplate.git
cd nuxt-boilerplate

# Install dependencies
pnpm install
```

## Usage

### Development Environment
Duplicate `example.env` and rename to `.env` and run:

```bash
# Start development server
pnpm dev
```

Access the application at `http://localhost:3000`

### Production Build

```bash
# Build for production
pnpm build

# Run the built application
pnpm start
```

## Project Structure

```bash
nuxt-boilerplate-v3/
โ”œโ”€โ”€ app/
โ”‚ โ”œโ”€โ”€ assets/ # Static assets (images, fonts, etc.)
โ”‚ โ”œโ”€โ”€ components/ # Reusable Vue components
โ”‚ โ”œโ”€โ”€ composables/ # Vue composables
โ”‚ โ”œโ”€โ”€ layouts/ # Page layouts
โ”‚ โ”œโ”€โ”€ middleware/ # Nuxt middleware
โ”‚ โ”œโ”€โ”€ pages/ # Application pages
โ”‚ โ”‚ โ””โ”€โ”€ index.vue # Homepage
โ”‚ โ”œโ”€โ”€ plugins/ # Nuxt plugins
โ”‚ โ”œโ”€โ”€ utils/ # Utility functions
โ”‚ โ”œโ”€โ”€ app.config.ts # App configuration
โ”‚ โ””โ”€โ”€ app.vue # App root
โ”œโ”€โ”€ i18n/ # i18n
โ”‚ โ””โ”€โ”€ locales/ # Language json
โ”œโ”€โ”€ content/ # Nuxt Content files
โ”œโ”€โ”€ public/ # Public static files
โ”œโ”€โ”€ server/ # Server API endpoints and middleware
โ”œโ”€โ”€ stores/ # Pinia stores
โ”œโ”€โ”€ .env # Environment variables
โ”œโ”€โ”€ content.config.ts # Nuxt Content configuration
โ”œโ”€โ”€ nuxt.config.ts # Nuxt configuration
โ”œโ”€โ”€ README.md
โ””โ”€โ”€ tsconfig.json # TypeScript configuration
```

## Contributing

We welcome all contributions to improve this project!

### How to Contribute

1. Fork this repository
2. Create a new branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes (`git commit -m 'Add some amazing feature'`)
4. Push to the branch (`git push origin feature/amazing-feature`)
5. Open a Pull Request

### Contribution Guidelines

- Ensure your code follows the project's naming conventions and formatting
- Add tests for any new features or bug fixes if possible
- Update documentation when necessary
- Describe your changes in detail in the Pull Request

## License

This project is distributed under the MIT License. See the `LICENSE` file for more information.

## Contact

- GitHub: [heydayle](https://github.com/heydayle)
- Website: [Thinh Le](https://thinh.io.vn)

---

Built with โค๏ธ by [heydayle](https://github.com/heydayle)