vue-CLI development environment configuration
Vue.js provide an official command-line tool that can be used to quickly build a large single-page application. The tool provides out of the box configuration tools to build, to bring modern front-end development process. Just a few minutes to create and start with hot overloaded, when you save can be used for static checking and project build configuration of the production environment:
Recommended refer to the official documentation https://cn.vuejs.org/v2/guide/installation.html
Necessary environment. Node.js http://nodejs.cn/ . Recommend installing the latest version
Npm (comes with the latest version node)
Start the development environment: the installation node packages using the command line execute the following command
cd project path
npm install (cnpm install)
(Recommended CNPM, http://npm.taobao.org/ accelerate download speed dependent)
npm run dev; (cnpm run dev)
Production packaging commands
cd project path
npm run build; (cnpm run build)
config / dev.env.js in BASE_API development environment addresses (default
”/“)
config / prod.env.js in the production environment BASE_API address (default http: // localhost: 8080)
src directory for developers
src / api interface address storage system
src / components stored global components
src / assets stored picture style resources
src / plugs to store third-party plug
src / routers routing information stored page
src / store to store vuex state management information
src / untils store global method
src / views business components store page
And server mutual authentication information is stored in src \ store \ systemConfig.js
The default value is
appId:'7166912116544627',
aesKey:'MnYg7Tm8NR1YiYBJ',
ivKey:'yToM65IuE64VDoEq',
appKey:'5atYoyckDzDPetcaQZlF1VsK1o8qCQPE',
Please log back in time to adjust and re-deploy package
Unless otherwise noted, you do not need to modify other files