Skip to content
This repository was archived by the owner on Nov 26, 2021. It is now read-only.

m-ripper/vue-boilerplate-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

76a91f1 Β· Mar 10, 2019

History

25 Commits
Mar 9, 2019
Mar 8, 2019
Mar 10, 2019
Mar 8, 2019
Mar 9, 2019
Mar 8, 2019
Mar 9, 2019
Mar 9, 2019
Mar 9, 2019
Mar 9, 2019
Mar 9, 2019
Mar 8, 2019
Mar 9, 2019
Mar 8, 2019
Mar 9, 2019
Mar 8, 2019
Mar 9, 2019
Mar 9, 2019

Repository files navigation

Vue.js Boilerplate, Typescript, Vuex, Vue-Router, Element-UI, i18n, axios, Font Awesome

A typescript boilerplate for Vue.js with Vue CLI 3.x that uses:

  • vuex
  • vue-router
  • Element-UI
  • i18n
  • axios
  • Font Awesome
  • ...

Requirements

  • Node.js (npm)

Installation

  1. Install Vue CLI 3.x

    npm install -g @vue/cli
    # OR
    yarn global add @vue/cli
    
  2. Install the dependencies

    npm install
    # OR
    yarn install
    

Architecture

This is the way I personally structure Vue.js projects. Feel free to modify it to fit your needs.

  • πŸ“ assets: Contains all assets such as images or sound files.
  • πŸ“ components: Contains all Vue components.
  • πŸ“ layouts: Contains all Vue-Layouts that can be set in the vue-router.
  • πŸ“ models: Contains all models needed for the business logic.
  • πŸ“ requests: Contains all requests needed for communicating with the API.
  • πŸ“ rules: Contains all reusable validation rules.
  • πŸ“ services: Contains all services that fulfill web-requests.
  • πŸ“ store: Contains all modules that are being used by the vuex-store.
  • πŸ“ style: Contains all stylesheets.
  • πŸ“ translations: Contains all translations as .ts files.
  • πŸ“ views: Contains all views that are being used in the vue-router.

Commands

Compiles and hot-reloads for development

npm run serve
# OR
yarn run serve

Compiles and minifies for production

npm run build
# OR
yarn run build

Lints and fixes files

npm run lint
# OR
yarn run lint

Customize configuration

See Configuration Reference.