A simple service to send asynchronous emails using Kue and Amazon's SES
These services offers a single entry point for sending emails via /POST
A fully functional development environment is available with Docker and Compose:
$ cp docker-compose.yml.dist docker-compose.yml
$ docker-compose run --rm npminstall
$ docker-compose up router
After which the service documentation is available on http://localhost:4000/doc
NOTE: Make sure you properly set SES related environment variables
Documentation can be regenerated with:
$ docker run --rm -v $(pwd):/srv/www yoanisgil/cartero npm run-script prestart
$ docker run -v $(pwd):/srv/www --rm yoanisgil/cartero npm test
$ docker build -t yoanisgil/cartero .
$ docker run -e REDIS_PORT=SERVER_PORT -e REDIS_HOST=SERVER_IP -d yoanisgil/cartero node ./node_modules/babel/lib/_babel-node server.js
Since the project is using Kue as the distributed task scheduler, it requires a working Redis service already configured. Parameters controlling how to connect to the redis instance can be passed as environment variables:
Other environment variables are:
The worker can be started with:
$ docker run -e REDIS_PORT=SERVER_PORT -e REDIS_HOST=SERVER_IP -d yoanisgil/cartero node ./node_modules/babel/lib/_babel-node worker
The same environment variables described above can be used, alone with:
Content type
Image
Digest
sha256:f15bc273f…
Size
83.4 MB
Last updated
about 11 years ago
docker pull yoanisgil/cartero