Mocking up web app with Vite-Boot (speed)
<script setup>
syntax# vite-boot
├── LICENSE
├── README.assets
│ └── vite-vue-tailwind.png
├── README.md
├── README.zh-CN.md
├── index.html
├── node_modules
├── package.json
├── pnpm-lock.yaml
├── postcss.config.js # tailwind configuration
├── public
│ └── favicon.ico
├── src
│ ├── App.vue
│ ├── api # api interface
│ ├── assets # static resource
│ │ └── logo.png
│ ├── components # global component
│ │ └── Navbar.vue # Navbar component
│ ├── env.d.ts
│ ├── main.ts
│ ├── router # Vue router
│ │ └── index.ts
│ ├── settings.ts # global configuration
│ ├── store # Pinia store
│ │ ├── counter.ts
│ │ └── index.ts
│ ├── styles # global style
│ │ ├── main.scss
│ │ ├── nprogress.scss # nprogress style
│ │ ├── tailwind.css
│ │ └── variables.scss
│ ├── utils # global public method
│ │ └── darkMode.ts
│ └── views # all pages
│ └── Index.vue
├── tailwind.config.js # tailwind configuration
├── tsconfig.json # TS compilation configuration
└── vite.config.ts # Vite configuration
Create a repo from this template on GitHub.
npx degit kirklin/vite-boot my-vite-app
cd my-vite-app
pnpm i
Just run and visit http://localhost:8888
pnpm run dev
To build the App, run
pnpm run build
And you will see the generated file in dist
that ready to be served.