Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maggialejandro/basic-model
:point_right: Basic model written using Babel.
https://github.com/maggialejandro/basic-model
Last synced: 24 days ago
JSON representation
:point_right: Basic model written using Babel.
- Host: GitHub
- URL: https://github.com/maggialejandro/basic-model
- Owner: maggialejandro
- License: mit
- Created: 2015-09-07T19:29:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-15T17:54:51.000Z (over 9 years ago)
- Last Synced: 2024-12-17T22:18:50.709Z (27 days ago)
- Language: JavaScript
- Homepage:
- Size: 111 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# basic-model [![Build Status](https://travis-ci.org/maggialejandro/basic-model.svg?branch=master)](https://travis-ci.org/maggialejandro/basic-model)
> Basic model written using Babel.
## Install
```
$ npm install basic-model --save
```### Usage
```js
import Model from "basic-model";class Person extends Model {
constructor(attributes){
super(attributes);
}sayMyName(){
console.log(`Hello, my name is ${this.get('name')}`);
}
}```
## How to run locally installed gulp
```
$ node_modules/gulp/bin/gulp.js
```## License
MIT license; see [LICENSE](./LICENSE).
(c) 2015 by Alejandro Maggi