<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>phoenix on Washington Botelho</title><link>http://www.wbotelhos.com/tags/phoenix/</link><description>Recent content in phoenix on Washington Botelho</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Sat, 12 Feb 2022 00:00:00 -0300</lastBuildDate><atom:link href="http://www.wbotelhos.com/tags/phoenix/index.xml" rel="self" type="application/rss+xml"/><item><title>OAuth Login with Phoenix and Ueberauth</title><link>http://www.wbotelhos.com/oauth-login-with-phoenix-and-ueberauth/</link><pubDate>Sat, 12 Feb 2022 00:00:00 -0300</pubDate><guid>http://www.wbotelhos.com/oauth-login-with-phoenix-and-ueberauth/</guid><description>Rarely an application doesn&amp;rsquo;t need login logic. It&amp;rsquo;s important when you want to restrict some areas of your applications and identify how is using it. We can create a password logic or we can use OAuth to connect the user through some provider like Google, Facebook, Github, Twitter, and others. Of course, Phoenix already has some plugs to facilitate it for you.
Goal Implement an OAuth Google logic to control the login in a Phoenix application.</description></item><item><title>GraphQL with Absinthe on Phoenix - Authentication</title><link>http://www.wbotelhos.com/graphql-with-absinthe-on-phoenix-authentication/</link><pubDate>Tue, 24 Aug 2021 00:00:00 -0300</pubDate><guid>http://www.wbotelhos.com/graphql-with-absinthe-on-phoenix-authentication/</guid><description>Updated at: Jul 24, 2023 In the last article about Mutation, we learned how to create records in an easy way, so now we have searches and insertions but we still do not control how the user access that API. For security reasons or just for control of access we need to implement the API Authentication where only logged users can access it.
Goal Authenticate the user and restrict the API to only the logged ones.</description></item><item><title>GraphQL with Absinthe on Phoenix - Mutation</title><link>http://www.wbotelhos.com/graphql-with-absinthe-on-phoenix-mutation/</link><pubDate>Sun, 08 Aug 2021 00:00:00 -0300</pubDate><guid>http://www.wbotelhos.com/graphql-with-absinthe-on-phoenix-mutation/</guid><description>Updated at: Jul 23, 2023 In the last article about GraphQL, we learned how to create a Query and how to avoid N + 1. The systems need to fetch data but the most of time we need to create these data too and GraphQL has a mechanism called Mutation to do this job.
Goal Create a Mutation to save a book using the code of the last article
Mutation The Mutation works very similar to Query, it queries the data in the same way, but after creating the record, and as expected we receive the input data as a parameter, like in Query, but instead it be used as a filter it&amp;rsquo;s used as a parameter to be inserted into the database.</description></item><item><title>GraphQL with Absinthe on Phoenix - Query and Dataloader</title><link>http://www.wbotelhos.com/graphql-with-absinthe-on-phoenix-query-and-dataloader/</link><pubDate>Tue, 03 Aug 2021 00:00:00 -0300</pubDate><guid>http://www.wbotelhos.com/graphql-with-absinthe-on-phoenix-query-and-dataloader/</guid><description>Updated at: Jul 23, 2023 One thing is true, GraphQL is here to stay. This query language is very useful since you can just declare the fields you can have, but choose what you want in each request. It&amp;rsquo;ll avoid you to create combinations of logic that return fields for different purposes.
Goal We&amp;rsquo;ll learn how to use GraphQL on Phoenix with the help of Absinthe and how to deal with Queries and how to avoid N + 1 with the help of Dataloader.</description></item><item><title>I18n With Phoenix</title><link>http://www.wbotelhos.com/i18n-with-phoenix/</link><pubDate>Thu, 29 Jul 2021 00:00:00 -0300</pubDate><guid>http://www.wbotelhos.com/i18n-with-phoenix/</guid><description>It&amp;rsquo;s a good idea to translate your texts, even if you&amp;rsquo;ll display your site only in one language. With this technique, the texts will be centralized in only one place and you can separate them by domains. Phoenix uses gettext to do the translation and we&amp;rsquo;ll see how to do that.
Goal Translate and understand how translation in Phoenix works.
Setup Let&amp;rsquo;s create a Phoenix project:
mix phx.new i18n_with_phoenix cd i18n_with_phoenix mix deps.</description></item><item><title>CRUD in 5 Minutes with Phoenix and Elixir</title><link>http://www.wbotelhos.com/crud-in-5-minutes-with-phoenix-and-elixir/</link><pubDate>Thu, 27 May 2021 00:00:00 -0300</pubDate><guid>http://www.wbotelhos.com/crud-in-5-minutes-with-phoenix-and-elixir/</guid><description>I know, you already heard something like this in the Rails world. But for somebody that never created an application with Phoenix and Elixir, it is a good point to start.
Introduction Elixir is a new language created by José Valim. It&amp;rsquo;s a functional language that makes things safer and this language has a framework called Phoenix that help us with HTTP requests and so.
Dependencies First of all, you need to install the Erlang/Elixir package manager.</description></item></channel></rss>