Ecto.Enum In Schemaless Changesets

Beginning in Ecto 3.5, Ecto added Ecto.Enum as a new field type to use with schemas. This allows you to cast values to a known list of accepted values and have the values be atoms. However, using Ecto.Enum in a schemaless changeset isn't obvious.

Ghost Theme Uploads Using Drone CI

Uploading a custom theme repetitively to Ghost on every new change can be tiresome. If you're using use Drone CI build your theme already, supercharge your workflow by automating the deployment of your theme using a Drone plugin.

Using GenStage for a Batching Pipeline

In developing a new app for data loss prevention (DLP) integration in Slack. I came across a problem where GenStage is the solution.

TIL: Using functions as keys with update_in in Elixir

If you aren't already aware, Elixir has some very handy convenience helpers for accessing and updating nested values: get_in, put_in and update_in. These helpers simplify nested map manipulation.

Creating a Prelaunch Email List With SendGrid and Phoenix

So you've decided to build an app with Elixir and Phoenix and want to create a landing page to capture email address and gauge interest. With SendGrid, it's easy to save emails to a marketing list that you can utilize later for when you're ready to launch.

Upload Files to S3 With Phoenix and Ex_Aws

A common feature many web applications need is the ability to take a file and upload it to Amazon S3. Luckily for us ex_aws [https://github.com/CargoSense/ex_aws] along with Phoenix makes it very simple to add S3 uploads. I'll show you how to start

Sending Email With SendGrid and Elixir

SendGrid is an email service that allows you to send both transactional email and newsletter email from a single platform along with many other niceties. Setting up your Elixir projects to take advantage of platform is quite easy with my sendgrid library. Add The Dependency Add the :sendgrid dependency to

Using Elixometer With Phoenix

Exometer is a great tool for collecting metrics within the Erlang ecosystem. It allows you to easily capture metrics in your application and push those metrics to an aggregator for you to view with pretty graphs. Recently Pinterest released Elixometer [https://github.com/pinterest/elixometer], a thin wrapper around Exometer,

Seeding Your Phoenix App For Different Mix Environments

By default when creating a new Phoenix app, a seed.exs file is automatically created for you in the priv/repo/ directory. Additionally, the mix.exs file has an alias for seeding your database that looks like this: defp aliases do [ "setup": ["ecto.create", "ecto.

Authenticated Routes with Meteor and React Router

With React Router and Meteor, it's very easy to create applications that have views that require an authenticated user. Meteor has helpful methods built in to check if the user is authenticated and the lifecycle of React components will help us manage what should be rendered. These two

Page 1 of 2