Skip to Content
Phoenix Web Development
book

Phoenix Web Development

by Brandon Richey
April 2018
Beginner to intermediate content levelBeginner to intermediate
406 pages
9h 33m
English
Packt Publishing
Content preview from Phoenix Web Development

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, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Phoenix in Action

Phoenix in Action

Geoffrey Lessel
Real-Time Phoenix

Real-Time Phoenix

Stephen Bussey

Publisher Resources

ISBN: 9781787284197Supplemental Content