Mocking up web app with Vitesse(speed)
undefinedNote: This template is created during the early transition of Vue 3 and Vite. At this moment, if you are seeking for better Vue developer experience and more consistent maintenance, we recommend using Nuxt 3 instead (it also works perfectly with SPA or SSG as needed). This template still serves as a reference, but expect slower updates.
English | ็ฎไฝไธญๆ
๐ File based routing
๐ Layout system
๐ฒ PWA
๐จ UnoCSS - the instant on-demand atomic CSS engine
๐ I18n ready
๐ Component Preview
๐ Markdown Support
๐ฅ Use the new <script setup> syntax
๐ฅ APIs auto importing - use Composition API and others directly
๐จ Static-site generation (SSG) via vite-ssg
๐ฆ Critical CSS via beasties
๐ฆพ TypeScript, of course
โ๏ธ Unit Testing with Vitest, E2E Testing with Cypress on GitHub Actions
โ๏ธ Deploy on Netlify, zero-config
unplugin-vue-router - file system based routingvite-plugin-vue-layouts - layouts for pagesunplugin-vue-components - components auto importunplugin-auto-import - Directly use Vue Composition API and others without importingunplugin-vue-macros - Explore and extend more macros and syntax sugar to Vue.vite-plugin-pwa - PWAunplugin-vue-markdown - Markdown as components / components in Markdown
@shikijs/markdown-it - Shiki for syntax highlightingunplugin-vue-i18n - unplugin for Vue I18nvite-ssg-sitemap - Sitemap generator@unhead/vue v2 - manipulate document head reactivelyvite-plugin-vue-devtools - Designed to enhance the Vue developer experience.<script setup> SFC syntaxvite-ssg - Static-site generation
<script setup> IDE supportAs this template is strongly opinionated, the following provides a curated list for community-maintained variations with different preferences and feature sets. Check them out as well. PR to add yours is also welcome!
SolidStart, includes UnoCSS and HopeUI.Vitesse requires Node >=14.18
Create a repo from this template on GitHub.
If you prefer to do it manually with the cleaner git history
npx degit antfu-collective/vitesse my-vitesse-app
cd my-vitesse-app
pnpm i # If you don't have pnpm installed, run: npm install -g pnpm
When you use this template, try follow the checklist to update your info properly
.githubAnd, enjoy :)
Just run and visit http://localhost:3333
pnpm dev
To build the App, run
pnpm build
And you will see the generated file in dist that ready to be served.
Go to Netlify and select your clone, OK along the way, and your App will be live in a minute.
First, build the vitesse image by opening the terminal in the projectโs root directory.
docker buildx build . -t vitesse:latest
Run the image and specify port mapping with the -p flag.
docker run --rm -it -p 8080:80 vitesse:latest
I have created several Vite apps recently. Setting the configs up is kinda the bottleneck for me to make the ideas simply come true within a very short time.
So I made this starter template for myself to create apps more easily, along with some good practices that I have learned from making those apps. Itโs strongly opinionated, but feel free to tweak it or even maintain your own forks. (see community maintained variation forks)
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.