I’ve written a post about setting up your Phoenix application to receive incoming webhooks. Check it out at: https://simplabs.com/blog/2018/02/14/handling-webhooks-in-phoenix.html
It’s so easy to set up Docker for your Elixir Application and run it locally or in production. I’ve written a quick introduction how Docker works and how you can set it up to run multiple with containers. https://pspdfkit.com/blog/2018/how-to-run-your-phoenix-application-with-docker/
If you don’t know what cursor based pagination is or why you should use it please read the following article: http://use-the-index-luke.com/no-offset.
Please enjoy and feel free to give feedback!
Changing Primary Keys on an existing table sounds straight forward, but there’s a few hoops you need to jump through.
Here’s how I did it with Ecto:
Atomex 0.3.0 release: an ATOM feed builder with a focus on standards compliance, security and extensibility
Introducing Atomex, a simple ATOM 1.0 feed builder. Though Elixir already have
elixir-rss that serves a close purpose, I needed something that would be safe to use with user content and that could easily be extended. Atomex does all that, using xml_builder to ensure content is properly escaped.
0.3.0 implement almost all ATOM specifications, the only missing field is the entry source.
Let’s take another bite out of Mastering Bitcoin and implement a basic algorithm for generating vanity Bitcoin public addresses. After we implement the basic algorithm, we’ll add our Elixir special sauce and turn it into a fully parallelized procedure.
This article is all about coding the implicit conditions in FizzBuzz Word Game. This makes you to walk over lines of code that gives similar output with different syntax. This for Beginners to enhance their coding style.
Happy Coding …
If you’re building an Elixir or Phoenix API with WebSockets (eg, Phoenix Channels), and if you’re at all like me, you probably only use
phoenix.js for its WebSocket connector.
Alternatively, you may use Sockette, a tiny (350 byte) WebSocket wrapper that implements auto-reconnection & that allows you to reuse config / instances.
It’s not a drop-in replacement for the Phoenix library by any means, but it definitely allows you to get going quickly if you just need a bare minimum solution.
We’ll install Comeonin and Bcrypt (AND cover how to get them to build properly on Windows), so we can hash user passwords before storing them in the database.
Next, we’ll associate profiles with users and make it possible for them to create project profiles right from their user pages. In the process, we’ll also have to fix the data created before we were storing these associations and hashed passwords.
Then we’ll a plug to restrict various parts of the site to logged in users. Some parts will be restricted to the specific user they concern and we’ll start rendering customized pages based on who is logged in.
You can see the finished project at http://statwatch.me
Exploring the Functor concept in Elixir, then implement a fault tolerant pipe operator.
This shows off a simple module and behaviour I made to filter Ecto queries.
We continue migrating StatWatch from being a purely back-end OTP app into a Phoenix 1.3 project.
We’ll set up login/log out functionality via sessions, store the current user in a pluggable auth controller and build out a template to display stats.
Finished project at http://statwatch.me