Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 969 Bytes

File metadata and controls

49 lines (33 loc) · 969 Bytes

myapp

This template should help get you started developing with Vue 3 in Vite.

Recommended IDE Setup

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Compile and Minify for Production

npm run build

找包下载 json-server

npm i -g json-server

db.json:
{
  "posts": [
    { "id": 1, "title": "json-server", "author": "typicode" }
  ],
  "comments": [
    { "id": 1, "body": "some comment", "postId": 1 }
  ],
  "profile": { "name": "typicode" }
}



json-server --watch db.json