In the previous articles, we have been building the Prater chat app.
It is a time to deploy it now.
There is a bunch of different ways to deploy Phoenix applications.
I would like to start from the simplest approach and deploy the app to Heroku.
For those who are not familiar with Heroku. It is a cloud-based Platform as a Service.
It allows deploying web applications for many different programming languages.
Once you configure the deployment for your app, every new deploy would be triggered by simply run
git push heroku master.
That is why it’s so easy to use Heroku, especially for demo and prototype apps.
Let’s get started.
Last week I was visiting the ElixirConf EU 2018.
Speakers were covering a bunch of interesting topics there.
One of the most interesting ideas I’ve got out of those talks was a “Property-based testing” topic.
That topic was covered by José Valim (the creator or Elixir) in the Keynote speech and then in more details by (a core team member) Andrea Leopardi.
Let’s try to figure out what is a Property-based testing.
Let’s talk about User Interface (UI) testing.
In the “Introduction to testing” article we have covered briefly what UI tests are standing on top of test pyramid. They cover several parts of functionality at once and check how do they work together.
Today we will see them in action.
Last time we have learned about general testing concepts and have talked about unit testing in Elixir.
Now let’s go further and learn how to add tests to Phoenix project.
We will learn how to write tests for Models and Controllers.