Skip to content

Latest commit

 

History

History

README.md

User Authentication

This example Sinatra application that implements basic user authentication, i.e., signing up, logging in, and logging out.

Running The Application

Make sure you're in the public-file-upload directory. Once there, run the following two commands to configure your application correctly:

$ bundle install --without production
$ rake setup:dotenv

On Cloud9

If you're using Cloud9, run the application with

$ ruby app-authentication.rb -p $PORT -o $IP

On Your Own Computer

If you're on your own computer, run the application with

$ ruby app-authentication.rb

If everything runs successfully, you should be able to visit http://localhost:4567 and see the web application.