- SPA
- on a terminal, run
npm run serve
to start a data server - on another terminal, run
npm run dev
to serve the app files - visit https://localhost:4444
- SSR
- on a terminal, run
npm run build:client
to build the client assets and watch for files changes - on another terminal, run
npm run build:server
to build the app server and watch for files changes - on another terminal, run
npm run start
to start the app server - visit https://localhost
- SSR
- on a terminal, run
npm run build:production
to build the app - then, run
npm run start
to start the app server - visit your website, mine is https://cdztt.cn