VueViteStarter

vite-vue2-js-starter-template — Vue Starter Template

By ElanYoung

A JavaScript starter template based on Vite and Vue 2.7, integrating Vue Router, Vuex, Less, Axios, and code quality and Git hook tools such as ESLint, Prettier, Stylelint, and Husky.

Explore the design

Compare the page layouts and mobile experience. Open any screenshot for a closer look.

2 previews
Desktop homepage1 / 2
Desktop captureTop of page

Actual screenshot captured by the server browser.

All pages & views 2

Screenshots show visual appearance; interactive behavior may differ.

Recorded 2026-10-02View source

What stands out

A quick read of the recorded project description.

01

Vite build tool paired with Vue 2.7, supporting Composition API and <script setup>

02

Built-in Vue Router and Vuex for routing and state management respectively

03

Uses Less as the style preprocessor and Axios as the HTTP client

04

Integrates ESLint, Prettier, Stylelint, and EditorConfig for code style

05

Enforces commit and Git hook conventions via Husky, Lint-Staged, Commitizen, and Commitlint

06

Provides two initialization methods—GitHub Template and local clone—along with a post-use modification checklist

Template Details

This is a starter template for Vue 2 projects, using Vite as the build tool and JavaScript as the language. The template combines Vue 2.7, Vue Router, Vuex, Less, and Axios, and includes a set of code style and commit convention tools: ESLint (airbnb-base config), Prettier, Stylelint, EditorConfig, as well as Husky, Lint-Staged, Commitizen, and Commitlint.

The README states that the template requires Node >= 14.18, offers two initialization methods—GitHub Template and local clone—and lists items to modify after use: the author name in LICENSE, the title in App.vue, the hostname in vite.config.js, the favicon in public, and deleting the .github folder and cleaning up the README and routes. For development, run npm run dev and visit localhost:3000; for building, use npm run build.

The template is MIT licensed, allowing free use, modification, commercial use, and distribution, but the copyright notice and license notice must be retained when distributing; the code is provided as is. The licenses for third-party assets such as demo images, fonts, and icons must be checked separately, and external services such as domains and hosting may incur additional charges.

VueViteStarter

Is it right for your project?

Use Cases

  • Starting a new front-end project with Vue 2 syntax and the Vite build tool
  • Wanting a project that comes with ESLint, Prettier, Stylelint, and other code style configurations from the start
  • Needing to standardize team Git commit message format and pre-commit check workflow
  • Introducing the common combination of Vue Router, Vuex, Less, and Axios in a Vue 2 project

Suitable For

  • Teams or individuals developing front-end applications with Vue 2 and JavaScript
  • Projects that want to replace older build tools with Vite while retaining the Vue 2 stack
  • Developers who value code style and commit conventions and want to reduce initial configuration effort

Getting started & customization

Use these recorded setup notes alongside the repository instructions for your chosen version.

  1. 1

    Requires Node >= 14.18

  2. 2

    Can generate a repository via GitHub Template, or clone locally and run npm i to install dependencies

  3. 3

    For development, run npm run dev and visit http://localhost:3000; for building, run npm run build

  4. 4

    After use, modify the LICENSE author name, App.vue title, vite.config.js hostname, and public favicon according to the checklist, and delete the .github folder and clean up the README and routes

  5. 5

    Windows users can first run git config --global core.autocrlf input to disable line ending conversion

Read repository instructions

License & source material

Usage conditions & limitations

Free to use · keep license notice

This entry covers the free version under the MIT license from the public repository; the free scope applies to that version's code and does not imply that external services or third-party assets are free.

Must comply with when using

  • The code of this version may be used, modified, used commercially, and distributed for free.
  • When distributing copies or substantial portions of the code, retain the original author's copyright notice and the full MIT license notice.
  • The code is provided as is; warranties and limitations of liability are governed by the original license and applicable law.

Additional costs & items to verify

  • Running this template requires Node.js version 14.18 or higher; environments below this version cannot properly install dependencies and start the development server.
  • After using the template, replace the author name in LICENSE with your own information to comply with the MIT license's copyright notice requirement.
  • After using the template, delete the .github folder containing funding information to avoid retaining the original author's sponsorship configuration.
  • After using the template, clean up the README documentation and remove example routes to avoid bringing demo content into the actual project.
  • Demo images, fonts, icons, and other third-party assets must be checked against their respective licenses and cannot be judged solely by the code's MIT license.
  • External services such as domains, hosting, databases, payments, or AI may incur additional charges.
View Original Text Basis

Permission is hereby granted, free of charge

Original License Text

Vite4 Vue2 JavaScript Starter Template requires Node >= 14.18

Original README

Change the author name in `LICENSE`

Original README

Remove the `.github` folder which contains the funding info

Original README

Clean up the READMEs and remove routes

Original README
https://github.com/ElanYoung/vite-vue2-js-starter-template/blob/master/LICENSEhttps://github.com/ElanYoung/vite-vue2-js-starter-template/blob/master/README.md

Compiled by DeepSeek based on repository license and README ·2026-10-03. Results only cover the materials read; dependencies, images, fonts, and subsequent term changes are subject to their respective original texts.

Project checks & description sources

Template Information

Source platforms
GitHub
Documentation and maintenance reference score
More documented · 77 / 100
Technologies
Vue · Vite
Website type
Starter
How this score is calculated

Our heuristic uses license records (up to 30), a demo link (12), a preview (10), stars (15), recorded maintenance (15), description completeness (8), feature records (5) and classification data (5). It is not a code, security or performance test, or a Google score. A link does not establish tested functionality.

What to verify for this project

Repository update recorded
2023-06-03
Screenshot last checked
2026-10-03

A demo link is listed. Check it with your own content and viewport sizes; its presence does not confirm that forms, authentication or payments work.

The catalog identifies Vue as the primary stack. Check the actual dependency manifest and lockfile for versions and hosting requirements. These notes use recorded metadata, not a code audit or a deployment test.

Use a selection guide →

How this description was prepared

AI-assisted description based on catalog records and repository material. Repository authors are not automatically the reviewers of this description.

Review declaration: [email protected] · 2026-10-04

Inspect the recorded source material

SHA-256: 9605ec26919b75433cadcd29acc73b1333691070d93e1fda277db85934fab417

2026-10-03T19:18:07.559Z

Source file / repository
<h1 align="center"><a href="https://github.com/ElanYoung/vite-vue2-js-template-starter" target="_blank">Vite 4 🚀 - Vue 2  Starter Template</a></h1>

<p align="center">
  <a href="https://nodejs.org/en/about/releases/">
    <img src="https://img.shields.io/node/v/vite.svg" alt="node compatility" />
  </a>
  <a href="https://cn.vitejs.dev" rel="nofollow">
    <img src="https://img.shields.io/badge/vite-4.3.9-3963bc.svg" alt="vite" style="max-width:100%;" />
  </a>
  <a href="https://github.com/vuejs/vue">
    <img src="https://img.shields.io/badge/vue-2.7.14-brightgreen.svg" alt="vue" />
  </a>
  <a href="https://github.com/vuejs/vue-router">
    <img src="https://img.shields.io/badge/vue--router-3.5.4-brightgreen.svg" alt="vue-router" />
  </a>
  <a href="https://github.com/vuejs/vuex">
    <img src="https://img.shields.io/badge/vuex-3.6.2-brightgreen.svg" alt="vuex" />
  </a>
  <a href="https://doc.starimmortal.com">
    <img alt="author" src="https://img.shields.io/badge/author-ElanYoung-blue.svg" />
  </a>
  <a href="https://github.com/ElanYoung/vite-vue2-js-starter-template/blob/master/LICENSE">
    <img alt="LICENSE" src="https://img.shields.io/github/license/ElanYoung/vite-vue2-js-starter-template.svg" />
  </a>
</p>

<p align='center'>
  <b>Vite4</b> + <b>Vue2</b> + <b>JavaScript</b> + <b>Vue Router</b> + <b>Vuex</b> + <b>Less</b> + <b>Axios</b> + <b>ESLint + Stylelint + Prettier</b>
</p>

<p align='center'>
  <a href="https://elanyoung.github.io/vite-vue2-js-starter-template">Live Demo</a>
</p>

<p align="center">
  <span>English | <a href="./README.zh-CN.md">简体中文</a></span>
</p>

## Features

+ ⚡️ [Vite 4](https://github.com/vitejs/vite) - born with fastness
+ 🖖 [Vue 2.7](https://github.com/vuejs/vue) - Composition API and `<script setup>`
+ 🚦 [Vue Router](https://github.com/vuejs/vue-router) - The official router for Vue.js.
+ 📦 [Vuex](https://github.com/vuejs/vuex) - A a state management pattern + library
+ 🎨 [Less](https://github.com/less/less.js) - It's CSS, with just a little more
+ 🔗 [Axios](https://github.com/axios/axios) - Promise based HTTP client for the browser and node.js
+ 🧰 [Husky](https://typicode.github.io/husky/#/) + [Lint-Staged](https://github.com/okonet/lint-staged) - Git Hook Tools
+ 🛡️ [EditorConfig](http://editorconfig.org) + [ESLint](http://eslint.org) + [Prettier](https://prettier.io) + [Stylelint](https://stylelint.io) + [Airbnb JavaScript Style Guide](https://github.com/airbnb/javascript#translation) - Code Standards
+ 🔨 [Commitizen](https://cz-git.qbb.sh/zh) + [Commitlint](https://commitlint.js.org) - Submit Standards

## Coding Style

+ [ESLint](https://eslint.org) with [eslint-config-airbnb-base](https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb-base)
+ [Prettier](https://prettier.io) with [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier)
+ [Stylelint](https://stylelint.io) with [stylelint-config-standard](https://github.com/stylelint/stylelint-config-standard)

## Development Tools

+ [npm](https://www.npmjs.com) - Package manager
+ [Visual Stuido Code Extensions](./.vscode/extensions.json)
  + [Vite](https://marketplace.visualstudio.com/items?itemName=antfu.vite) - Fire up Vite server automatically
  + [Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur) - Vue 2 tooling for VS Code
  + [EditorConfig for VS Code](https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig) - A solution for unifying code formats
  + [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) - Find and fix problems in your JavaScript code
  + [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) - An opinionated code formatter
  + [StyleLint](https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint) - A mighty, modern linter that helps you avoid errors and enforce conventions in your styles.

## Try it now!

> Vite4 Vue2 JavaScript Starter Template requires Node >= 14.18

### GitHub Template

[Create a repo from this template on GitHub](https://github.com/ElanYoung/vite-vue2-js-starter-template/generate).

### Clone to local

If you prefer to do it manually with the cleaner git history

```bash
# [optional] if you are using Windows, you need to close the end-of-line conversion
git config --global core.autocrlf input

# clone repository
git clone https://github.com/ElanYoung/vite-vue2-js-starter-template

# open folder vite-vue2-js-starter-template
cd vite-vue2-js-starter-template

# install packages
npm i
```

## Checklist

When you use this template, try follow the checklist to update your info properly

- [ ] Change the author name in `LICENSE`
- [ ] Change the title in `App.vue`
- [ ] Change the hostname in `vite.config.js`
- [ ] Change the favicon in `public`
- [ ] Remove the `.github` folder which contains the funding info
- [ ] Clean up the READMEs and remove routes

## Usage

### Development

> Just run and visit http://localhost:3000

```bash
## install dependencies
npm install

## set up
npm run dev
```

### Build

```bash
## build
npm run build
```

## Achievement

🎉 Added to the [Awesome Vite.Js](https://github.com/vitejs/awesome-vite#vue-2)

## License

[MIT](http://opensource.org/licenses/MIT)

Copyright (c) 2022 ElanYoung
Report a correction

Explore similar templates

Compare previews and descriptions within the same stack and category.

vitesse

vitesse

Vitesse is an opinionated Vite + Vue 3 starter template maintained by antfu-collective, offering file-based routing, component and API auto-import, Pinia, UnoCSS, PWA, i18n, Markdown, vite-ssg, TypeScript, Vitest, and Cypress.

Vue · Starter

vitesse-webext

vitesse-webext

vitesse-webext is a Vite-powered WebExtension starter template using Vue 3 and TypeScript, with built-in popup, options, and content script examples. It targets Chrome and Firefox, integrates webextension-polyfill, webext-bridge, UnoCSS, VueUse, and unplugin tools, and supports hot reload during development.

Vue · Starter

laravel-vue-spa

laravel-vue-spa

A Laravel + Vue SPA starter kit for quickly building a decoupled web application skeleton. It includes login, registration, email verification, and password reset flows, uses JWT for authentication, and integrates Laravel Socialite with GitHub as an example provider.

Vue · Starter

vue3-h5-template

vue3-h5-template

A mobile H5 starter template built on Vue3, Vite, and Vant4, with TypeScript by default and JavaScript and i18n branches.

Vue · Starter

tov-template

tov-template

tov-template is an MIT-licensed Vite + Vue 3 + TypeScript starter maintained by dishait. It bundles file-based routing, layouts, Mock, auto-imports, UnoCSS, Pinia, vue-request, Vitest, i18n, dark mode, Dockerfile, and engineering scripts.

Vue · Starter

shadcn-vue-landing-page

shadcn-vue-landing-page

A Vue + Shadcn-Vue + TypeScript + Tailwind landing page template with sections like Navbar, Hero, Pricing, FAQ, Team, and Contact, plus dark mode and responsive layout.

Vue · Corporate Website