@awes-io/vue-mc

0.9.2 • Public • Published

Awes.io Models and Collections Abstract Layer

Based on VueMC

Basic usage

  1. Ensure you are using @nuxtjs/axios in your project
  2. Install the module yarn add @awes-io/vue-mc
  3. Now you are ready to build models and collections
  4. Import your BaseModel and BaseCollection from this package
import { BaseModel, BaseCollection } from '@awes-io/vue-mc'

class Todo extends BaseModel {
    defaults() {
        return {
            id: null,
            done: true
        }
    }
}

class Todos extends BaseCollection {
    model() {
        return Todo
    }
}

export default Todos

Build before release a new version

$ yarn build

Ensure to write proper commit message according to Git Commit convention

Readme

Keywords

none

Package Sidebar

Install

npm i @awes-io/vue-mc

Homepage

awes.io

Weekly Downloads

63

Version

0.9.2

License

MIT

Unpacked Size

30.2 kB

Total Files

17

Last publish

Collaborators

  • illjah42
  • awescode
  • the-alex