Skip to content

freedom-zt/Vue-Element-ui-project

Repository files navigation

My first vue project

Vue.js和Element-ui项目,由Vue2.0和Element-ui。

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:3000
npm run dev

# build for production with minification
npm run build

# serve with backend mock data at localhost:8080
npm run server

# run unit tests
npm run unit

# run e2e tests
npm run e2e

# run all tests
npm test

Project Structure

.
├── build/                      # webpack config files
│   └── ...
├── config/                     
│   ├── index.js                # main project config
│   └── ...
├── server/                     # node server files
│   ├── controller              # node controller files
│       └── ...
│   ├── model                   # node model files or mock data files
│       └── ...   
│   └── server.js               # node start file
├── src/
│   ├── assets/                 # other static files
│   │   └── ...
│   ├── actions/                # Vuex actions file
│   │   └── ...
│   ├── modules/                # Vuex modules file
│   │   └── ...
│   ├── store/                  # Vuex store file
│   │   └── ...
│   ├── helpers/                # helper files(e.g:Ajax)
│   │   └── ...
│   ├── components/             # component files
│   │   └── ...
│   ├── main.js                 # app entry file
│   ├── routes.js               # app router
│   ├── App.vue                 # app main component
│   └── ...
├── static/                     # pure static assets (directly copied)
├── test/
│   └── unit/                   # unit tests
│   │   ├── specs/              # test spec files
│   │   ├── index.js            # test build entry file
│   │   └── karma.conf.js       # test runner config file
│   └── e2e/                    # e2e tests
│   │   ├── specs/              # test spec files
│   │   ├── custom-assertions/  # custom assertions for e2e tests
│   │   ├── runner.js           # test runner script
│   │   └── nightwatch.conf.js  # test runner config file
├── .babelrc                    # babel config
├── .editorconfig.js            # editor config
├── .eslintrc.js                # eslint config
├── index.html                  # index.html template
└── package.json                # build scripts and dependencies

About

my first vue 2.0 project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors