Creating the routes

We're starting off by just providing the user a simple way to sign up; we will essentially just be displaying a new users page with a form and then showing some sort of profile page for the user. The flow of information in the browser may look something like this:

This will help us figure out how to create the routes for our application. If we're following a strictly RESTful design methodology, then the signup page should be a new route on the user's resource. Creating the user (clicking Submit on our form) would be a POST to the user's resource, with the body being the user we're trying to create. Finally, if successful, ...

Get Phoenix Web Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.