>本教程演示了如何集成Trello和Zapier以创建功能强大的工作流程,从而在将新的用户数据添加到MongoDB数据库中时自动创建Trello卡。 我们将使用M.E.A.N.进行构建堆栈和Yeoman Generatorgenerator-angular-fullstack
。
密钥概念:
generator-angular-fullstack
>
安装生成器:npm install -g generator-angular-fullstack
runyo angular-fullstack
创建一个mongoDB数据库(例如,使用mongoHQ或类似服务)和用户帐户。 注意连接URI,用户名和密码。服务器端开发:
>配置mongodb连接: update
server/config/development.js
<code class="language-javascript">'use strict'; module.exports = { mongo: { uri: 'mongodb://<username>:<password>@<host>:<port>/<database>' }, seedDB: true };</database></port></host></password></username></code>使用
yo angular-fullstack:endpoint user
,server/api/user/user.model.js
,name
,email
)。
location
reason
message
<code class="language-javascript">var UserSchema = new Schema({ name: String, email: String, location: String, reason: String, message: String });</code>
>创建表单:
修改>
client/app/main/main.html
ng-model
句曲表单提交:
>将表单数据发送到client/app/main/main.controller.js
sendForm()
$http.post
/api/users
Zapier Integration:
以上是获取M.E.A.N.与Trello和Zapier的详细内容。更多信息请关注PHP中文网其他相关文章!