Last year was the year of emberjs for me. I changed my ways from developing ruby on rails apps using server side presentation, to developing a web frontend, SPA, and connecting it to a server api.

While doing this, emberjs and ruby on rails were my preferred platform. I tested and used for a while sailsjs, in nodejs, because I was not happy with ruby concurrency problems ( more concurrency problems then actual speed ).

This year, decidedly will/is the year of elixir. I am currently in love with elixir and phoenix framework, just like I was with ruby on rails in the beginning.

This will be a series of posts, being this the part 1, in how to:

create a new phoenix server api

using jsonapi package for jsonapi responses

add phoenix token auth, to enable authentication

creating a user resource

add cors

access protected users resource

In part 2, I will talk about:

create a new emberjs front end with ember-cli

add authorization using ember-simple-auth

create a login page and protected page

I will not go into how to install and configure elixir or nodejs and ember-cli, since there is already enough tutorials on the web on how to do that. My goal is elixir and emberjs integration.

So, assuming you have a working elixir environment, lets start.