Api for an SPA

I am interested in developing an api for a Single Page Application along the lines described here:

Anyone already made such an api / has pointers to projects that could help me?
Note: I am just a starting elixir / phoenix developer, worked myself through Dave Thomas’ and almost finished the phoenix tutorial.