Mais conteúdo relacionado
Semelhante a Exponential Developer Presentation - Pre-beta - 2014.01.30 01 (20)
Exponential Developer Presentation - Pre-beta - 2014.01.30 01
- 1. Build better apps
faster with less effort
Akbar S. Ahmed
akbar@exponential.io
@akbar501
Copyright © 2014 Exponential.io
- 4. What is Tooling?
Spec file (sm. JS file)
mdf.module.schema.fields = [
{
key: 'name',
label: 'Company',
placeholder: 'Company name',
type: 'String',
control: 'text',
index: true,
unique: true,
validate: true
}
Apps (lrg. JS files)
Meteor app
Restful API
Angular app
Server-side Express
- 8. Build better apps faster with less effort
Exponential.io
Akbar S. Ahmed
akbar@exponential.io
Copyright © 2014 Exponential.io
- 9. Exponential.io / Yeoman Comparison
Yeoman (Scaffolding)
exports.user = function(req, res, next, id) {
Exponential.io (Code)
/** Find user by id */
exports.user = function(req, res, next, id) {
User
.findOne({ _id: id })
.exec(function(err, user) {
if (err) return next(err)
if (!user) {
return next(new Error(errMsg));
}
req.profile = user;
next();
});
};
};