In the last chapter, we focused on implementing OAuth logins through a few separate providers to give a concrete example of developing a social media login system. Here in our final chapter, we'll build out an API for our users to use to get Poll and Vote data out in JSON format. For the final portion of work, we'll talk about different deployment and production running strategies to take your application the last few steps across the finish line!
In this chapter, we'll cover:
- Implementing an API in Phoenix
- Building API-specific pipelines
- Building API-specific controllers
- Working with JSON views instead of HTML views
- Setting up rules for error handling
- Setting up plugs for API key authentication
- Deploying a Phoenix Application to Production
- Logging Best Practices
- Running the application in Production
- Common deployment gotchas
- Alternative...