Skip to content

raphagoo/runningManWebsite

Repository files navigation

vue-starter

The structure of my usuals Vue projects

Vue.js CI Dependency Status devDependency Status GitHub license

Here is a more complete description.

Main features

  • Babel
  • VueJS
  • Webpack
  • ESLint
  • config file injection
  • very light custom logger

Quick start

# Clone this repo
git clone https://github.com/psancho/vue-starter.git vue-starter

# change directory to your app
cd vue-starter

# install the dependencies with npm
npm i

# start the server
npm start

Go to http://localhost:8080 in your browser.

Note you can change the port (see devServe.port doc) in 3 ways:

  • in the scripts section of the package.json

    "start": "cross-env NODE_ENV=development webpack-dev-server --hot --port 9000"
  • in webpack.config.js

    module.exports = {
        //...
        devServer: {
            port: 9000
        }
    };
  • directly in the CLI:

    npm start --port=9000

Building the app

Just launch the following:

npm run build

By default, it uses the config/production.js file. To use an alternate configuration, launch the following:

npm run build myServerConfig

License

MIT

Logger

see comments in src/interfaces/consoleLogger.js