Skip to content

Instantly share code, notes, and snippets.

View egaleme's full-sized avatar

Gabriel Aleme egaleme

View GitHub Profile
@egaleme
egaleme / gist:31a23ca1c03ce8eae4f8b64730e27de4
Last active November 9, 2017 01:54
Building a stateful todo web app with elixir
create our todo app with 
mix phx.new todo --umbrella

cd into todo_umbrella and add {:hasher, "~> 0.1.0"} as a dependency in mix.exs file, then run mix deps.get

Our todo_umbrella project comprises of two apps namely; todo - which is just our todo app's engine and todo_web - which is just our web interface.

@egaleme
egaleme / gist:96a921d3d87ab980e69264263082cbc2
Created August 5, 2017 22:37
Why Phoenix Framework is great for building realtime backends for mobile apps
# Why Phoenix Framework is great for building realtime backends for mobile apps
Basic useful feature list:
* Fast Response Time : Speed is usually top of the requirement for apps and when tallking about native apps you want people to do what they want to to on the go.
* Fault Tolerant : If you have millions of users, you want all of them to have a great user experience.
@egaleme
egaleme / gist:7b4d35334bb1f926422f8210b5b85fab
Last active September 2, 2021 21:47
How to create a user authentication systems with email verification in phoenix framework
# How to create a user authentication systems with email verification in phoenix framework.
Phoenix Framework is built with the powerful and resilient programming language called Elixir Lang. It is gaining momentunm by the day thanks to it's expressive sytanx which makes you productive and it's built upon the shoulders of the Erlang vm called BEAM which makes your code performant.
Here will build a user registration with Email verification and a login systems. Phoenix framework can be used to build normal html 5 crud apps, json api and real time backends. We'll be building a real time backend using Phoenix channels and an Elixir library Guardian jwt.
You can find installation instructions on the [Elixir site](http://elixir-lang.org) and [Phoenix framework](http://phoenixframework.org) .
We be using Phoenix 1.3 which is the current version.