Coder Social home page Coder Social logo

mailmao's Introduction

logo Mailmao

邮差猫 是基于 Trello 的邮件发送服务,结合 Trello 的日程管理,发送排版优雅的邮件,居家旅行发周报必备工具。

screenshot

如何安装

$ npm install mailmao

范例代码

签出代码库,填好配置文件

// 使用npm安装(推荐)
$ npm install mailmao
$ cp ./node_modules/mailmao/server-sample.js ./server.js
$ vi server.js // 将require('./app') 修改成 require('mailmao');

// 使用git clone
$ git clone https://github.com/turingou/Mailmao.git
$ cd Mailmao
$ cp server-sample.js server.js
$ vi server.js

server-sample.js,你需要填充以下配置:

  • name: 站点名称
  • url: 当env为production的时候,站点的根url
  • database: 相应的数据库信息(mongodb)
  • duoshuo: 用于支持多说的社会化登录
  • trello: 在trello dev center注册的app key
  • smtp: 发件服务的smtp信息,包括服务器,端口,邮箱用户名密码等
  • upyun: 用于托管发件中banner图片的bucket信息

运行服务:

$ node server.js

或者使用守护程序持久运行服务:

$ forever start server.js

邮差猫的故事

写这个项目的初衷很简单,刚来支付宝的时候,要写周报,基本上是个强制性的东西。大家知道每周五写周报的时候很烦的,第一个烦的事情是上周写的周报要用很低效的方法去搜(因为你这周还要继续写上周的部分内容嘛),如果平常使用GTD工具或者项目管理工具来管理,还要把每天做的事情,总结好之后呢复制粘贴到新的周报里。这个事情增加了很多成本。

所以邮差猫是基于这个前提来做的,我习惯用trello来管理项目,以及自己的todo,而且trello有很好的移动客户端支持。所以trello相对于国内一些app来说算是不错的(比如彩程的tower),而且Trello是基于Node开发的,本身有非常成熟的api集合,用来做mashup再适合不过。

邮差猫就是一个使用nodemail对trello数据进行排版,然后发报的一个工具。因为自己比较懒,模板我就写了一个。大家以后前往不要用jade来写这种模板层复杂的判断逻辑(我那时还经验不多,这个模板基本是不可维护了),等空闲一点会把不同的ctrler都分开来,现在都写在路由里,乱七八糟估计诸位fork过去也没心思去改。

这玩意其实还可以当企业edm用其实。做自己的触发式邮件也只需要提供一个接口就成了。但都太累,我考虑考虑再看。

mailmao's People

Contributors

guo-yu avatar layerssss avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.