npm install
npm run serve
For the devlopment to avoid cors issue when connection the backend API,
add or edit vue.config.js
file with devServer proxy
setting.
module.exports = {
devServer: {
proxy: {
'^/api': {
target: 'http://localhost:8000',
ws: true,
changeOrigin: true
}
}
}
}
Replace http://localhost:8000
with whatever your API endpoint.
npm run build
npm run test:unit