- Based on original repo,modify config files about webpack. Current project can run build command, and compile vue code.
- Frontend add vue tools(vue-router,vuex, vue-resource), and ElementUI.
- Backend express add history module.
- Rearrange the project strcture.
- Vue (vue-router + vuex + vue-resource)
- ElementUI
- Express
- Nodemon
- Webpack
- Npm
-
Install dependency
npm install
-
Run project under development mode, then check localhost:4000
npm run dev
-
Build frontend code
npm run build
Build code will be generated under ./dist. Add script to run express under production mode.
.
├── LICENSE
├── README.md
├── nodemon.json
├── package.json
├── src
│ ├── client
│ │ ├── App.vue
│ │ ├── components
│ │ │ └── Hello.vue
│ │ │── static
│ │ │── router
│ │ │── store
│ │ │── views
│ │ └── index.js
│ └── server
│ ├── index.js
│ ├── config
│ ├── dao
│ ├── model
│ ├── router
│ ├── public
│ │ └── favicon.ico
│ └── views
│ └── index.html
├── build
│ ├── build.js
│ ├── clicheck-version.js
│ ├── dev-client.js
│ ├── utils.js
│ ├── vue-loader.conf.js
│ ├── webpack.base.conf.js
│ ├── webpack.dev.conf.js
│ └── webpack.prod.conf.js
├── config
├── dev.env.js
├── index.js
└── prod.env.js
forked from:LuckyStarry/vue-express-dev-boilerplate
Some ideas are stolen from them, really appreciated.