Skip to content

Latest commit

 

History

History
43 lines (42 loc) · 958 Bytes

README.md

File metadata and controls

43 lines (42 loc) · 958 Bytes

SSR building based on Vue3 + Vite3

🛠 Tech Stack: Vite3 + Vue3 + Pinia + VueRouter4 + Express
📝 Document:Vue3+Vite3 SSR基本搭建

Getting Started

  • dev
pnpm install
pnpm dev
  • prod
pnpm install
pnpm build
pnpm serve
  • test
pnpm install
pnpm test

File list

├─ src
  ├─ hooks
  ├─ pages
  ├─ router // VueRouter
  ├─ store // Pinia
  ├─ types
  ├─ App.vue
  ├─ entry-client.ts // mount dom && replace data
  ├─ entry-server.js // replace html strings and static resources
  └─ main.ts // create app

├─ __tests__
  ├─ test-server // test server startup file
  └─ vuessr.spec.ts // vue ssr test

├─ server.js // server file
├─ start-server.js // server startup file
├─ vite.config.ts
// ...