Building an API

Take a look at the API-only applications section of Phoenix docs.