At the beginning of my Ruby on Rails career, I was using the “Rails Best Practices” code metric tool.
The intent of the tool is pretty simple.
It provides you suggestions how to improve your code. The best part of it, that on the https://rails-bestpractices.com website I was able to find detailed instructions why and how to fix those issues.
I love that tool. I was using it every day to check my code.
The cool part about those suggestions that I can go and read an explanation of that issue on their website.
I was using the tool mostly for learning stuff.
Now it’s time to learn some Elixir. And today I would like to discover a similar tool “Credo”.
Credo focuses on teaching and code consistency.
If you are building an app with the heavy focus on front-end.
You may want to use Webpack to get some benefits out of it.
Especially if you also would like to add React to your project.
Webpack is quite popular nowadays.
Starting from version 1.4, Phoenix will support it out of the box for assets management.
What if we want to start using it now before Phoenix 1.4 is released.
That is not a problem. We can manually replace Brunch with Webpack now.
Let’s take a look how we can do that.
Some people like using Bootstrap in their projects, some do not.
If you prefer Bootstrap, you can read “How to use Bootstrap 4 with Phoenix”)
Is there another way to build your web applications using powerful template library? Of course, it is.
One of the solutions would be to adopt Material Design by Google.
Let’s take a look how we can do that.
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.