I hereby claim:
- I am fbuecklers on github.
- I am fbuecklers (https://keybase.io/fbuecklers) on keybase.
- I have a public key ASApsy8VR6CxlxBttjLKOU9RWNxp5Qb9KeAprDJucJ22Hwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
var appName = 'your-app-name'; | |
var emf = new DB.EntityManagerFactory({host: appName}); | |
emf.createEntityManager(true).ready().then(function(em) { | |
// the adminUser needs at least subclassing rights on the Object class | |
return em.User.login('adminUser', 'password'); | |
}).then(function() { | |
var metamodel = emf.metamodel; | |
// create a new metamodel for the type and extend from Object | |
var personType = new DB.metamodel.EntityType("Person", metamodel.entity(Object)); |
exports.get = function(db, req, res) { | |
res.json({status: status()}); | |
} | |
exports.post = function(db, req, res) { | |
switch (req.body.action) { | |
case 'start': | |
startJob(db); | |
break; | |
case 'stop': |
exports.get = function(db, req, res) { | |
res.json({status: status()}); | |
res.send(); | |
} | |
exports.post = function(db, req, res) { | |
switch (req.body.action) { | |
case 'start': | |
startJob(db); | |
break; |
/* Require additional modules and handlers here */ | |
var lwip = require('lwip'); | |
var http = require('http'); | |
var https = require('https'); | |
var IMG_OPTIONS = { | |
jpeg: { | |
quality: 80, | |
}, | |
png: { |
Test |