Case insensitive columns with PostgreSQL and Phoenix

Mar 11, 2019

By default database columns are case sensitive in PostgreSQL. For the most part this is fine, but there are cases where we want a column to ignore casing. In this brief post we'll look at how to set up case insensitive columns with PostgreSQL in the context of a Phoenix application.

Pagination in Phoenix

Mar 6, 2019

It isn't the most interesting of topics, but providing paging is a common requirement when building out an application. In this post we'll see how we can implement paging in Phoenix with the scrivener_ecto package.

Using Bootstrap and Sass in Phoenix

Feb 28, 2019

When Phoenix 1.4 was released, the default CSS framework became Milligram as opposed to Bootstrap. In this post we'll look at how to switch out Milligram for Bootstrap in a Phoenix 1.4 application.

Creating a Photo Gallery in Phoenix with Arc - Part 2

Feb 25, 2019

In part 1 we created a simple photo gallery application which provided a good introduction to Arc. Today we'll expand on our application by adding the ability to upload multiple files at a time and swap out local storage for AWS S3.

Serving static content with AWS S3 and CloudFront

Feb 21, 2019

Serving static content with AWS S3 and CloudFront is an economical and convenient method of serving static content such as images or other files. Typically using a CDN such as CloudFront provides a better user experience for the consumers of your content and is also cheaper than serving and storing the content yourself or delivering it directly from S3. Today we'll look at the steps to setup a S3 bucket and serve the contents of the bucket thru CloudFront.