For the best experience, we recommend using node 16.x.x
and pnpm 7.x.x
. You can learn how to install the corresponding version from their official website.
pnpm install
To do this you need to change the VITE_APP_DEV_WEB_URL
parameter variable in .env.development
in the project root directory.
It is worth noting that when you do not change the request path or route, you only need to write http
, ip
and port
without the /
symbol at the end, such as http://127.0.0.1:12345
.
pnpm run dev
When you are ready to package, you need to modify the VITE_APP_PROD_WEB_URL
parameter in .env.production
accordingly to ensure that the packaged file can be normally requested to the backend service address.
pnpm run build:prod
Usually after you modify the code, you need to perform code formatting operations to ensure that the code in the project is the same style.
pnpm run prettier
If you are involved in the development of the UI
, please make sure to perform type checking before submitting the code, and submit it without errors.
vue-tsc --noEmit