Agile and Test Driven Development (TDD) with Swagger, Docker, Github, Postman, Newman and Jenkins for a Loopback, Node.js and CouchDB App

remko de knikker
NYC⚡️DEV
Published in
11 min readNov 3, 2018

--

Objective: in this tutorial I will create a copy of the FDIC Bank Data Developer Portal using a Test Driven Development (TDD) architecture for an agile development team.

My version of the FDIC Bank Data Developer Portal is a Loopback based Node.js application generated from a Swagger, or Open API Specification, file with 2 endpoints to access FDIC Banks data.

When I submit new code to Github, the code is automatically tested using Postman and Newman using a Scripted Pipeline with Groovy in Jenkins to set up the Continuous Integration (CI).

  1. Requirements
  2. Create an API Application with Swagger
  3. Dockerize the Application
  4. Create Postman Tests
  5. Automate Testing with Newman
  6. Add Source Code to Github Repository
  7. Setup a Local Jenkins Server
  8. Add a Jenkins Pipeline to Automate Testing

1. Requirements

  • Docker
  • Node.js
  • Loopback 3
  • Postman

--

--

remko de knikker
NYC⚡️DEV

Cloud Native Developer Advocate @IBMDeveloper for Cloud Native, Containers, Kubernetes, Security and DevOps. Dutch NYer, dad, humanist with empathy for paradox.