xxxxxxxxxx
1] npm init vue@latest
2] npm init vite my-app (npm run dev) // npm run build
3] npm install -g @vue/cli // old style
vue create my_vue_cli_proj
cd vue_cli_proj
npm run serve
xxxxxxxxxx
cd vue_projects
vue create vue-project-name
//the project name MUST NOT have camelcase format
cd vue-project-name
npm run serve
xxxxxxxxxx
npm init vue@latest
The usual answer is given by default: just press enter if you are unsure
xxxxxxxxxx
axios
.get(`http://127.0.0.1:8000/products/list/${pagination.page}?rowsPerPage=${pagination.rowsPerPage}&sortBy=${pagination.sortBy}&descending=${pagination.descending}`)
.then(({ data }) => {
this.productCount = data.product_count;
})