This example Sinatra application that implements basic user authentication, i.e., signing up, logging in, and logging out.
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
If you're using Cloud9, run the application with
$ ruby app-authentication.rb -p $PORT -o $IP
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.