|
|
#Tutorial de como construir o framework do projeto
|
|
|
|
|
|
##Adapter.js
|
|
|
|
|
|
--
|
|
|
export default class Adapter {
|
|
|
constructor() {
|
|
|
self.mongoose = require('mongoose')
|
... | ... | @@ -18,7 +18,7 @@ export default class Adapter { |
|
|
}
|
|
|
|
|
|
##Entity.js
|
|
|
|
|
|
--
|
|
|
import Joi from 'joi'
|
|
|
|
|
|
export default class Entity {
|
... | ... | @@ -51,7 +51,7 @@ export default class Entity { |
|
|
}
|
|
|
|
|
|
##Interactor.js
|
|
|
|
|
|
--
|
|
|
export default class Interactor {
|
|
|
constructor() {
|
|
|
self.Entity = require('./Entity').default
|
... | ... | @@ -71,7 +71,7 @@ export default class Interactor { |
|
|
}
|
|
|
|
|
|
##translator.js
|
|
|
|
|
|
--
|
|
|
export default class Translator {
|
|
|
constructor() {
|
|
|
self.Interactor = require('./Interactor').default
|
... | ... | |