Code Monkey home page Code Monkey logo

vue-boilerplate-typescript's Introduction

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.

vue-boilerplate-typescript's People

Contributors

m-ripper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.