Many web apps let users sign up for a new account and log in and out of their accounts. Together, signing up, logging in and logging out make up an authentication system.
Let’s create an authentication system for a photosharing website built with Ruby on Rails.
If you’re new to Rails, we recommend you do our introductory Rails course first.
We’ve provided a Rails app to get you started. Let’s take a look - first install the gems in the Gemfile.
$ bundle install
Next start a Rails development server.
$ rails server
http://localhost:8000 to see a list of all albums.
Click on an album to see the photos inside it.
Once ready, click Run to check your work.
How can we add an authentication system to this app? Click Next to learn more.
Sign up to start coding