February 24, 2018

NodeJS API Scaffolding

If you’re looking to launch an API using NodeJS, here is a very handy scaffolded application starting point: https://github.com/litwicki/nodejs-api What you get: Logging JWT Authentication MongoDB (via Mongoose) modeling md-seed migration and seed management for MongoDB Docker & Docker-Compose provisioning dotenv environment variable management APIDOC automatically generated documentation Check out the repository for a quick rundown and getting-started guide, and if you have any questions or issues please don’t hesitate to ask. Major thank you to danielfsousa and his boilerplate for the starting point of this scaffolding.

February 2, 2018

Email notification on new artifact build using AWS Lambda

Assumptions: You have installed and configured AWS CLI You have a third party mail service setup already (we use mailgun for this example). The entire process for this simple effort requires a handful of steps: Install SAM Local Define your Lambda in AWS Console (can also do so using CLI) Write your function! SAM Local First, let’s install SAM Local. SAM Local is an amazing tool written by Paul Maddox from the AWS team that allows you to build and test Lambda functions locally. npm install -g aws-sam-local Later, we’ll use event.json as a sample file we test our function with, so build that quickly; for example:

Define your Lambda in…