Introduction

In the 21st century, modern web applications are expected to be lean, perform well, and be easy to maintain. Concepts like DevOps and twelve-factor app architecture are becoming increasingly popular, and the ability to quickly build and deploy web services to spec is the primary advantage of employing those kinds of strategies and methodologies.

In this article we’ll look at the process of building a simple API endpoint to service a basic PostgreSQL DB for two common CRUD tasks: creating some arbitrary item, and reading a list of items that have been created.

The source code for this project is available on GitHub here. To run the project, or to create one like it, the following tools are required: