This Sinatra application demonstrates a simple authentication scheme.
Ruby HTML CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
public/stylesheets
views
.gitignore
LICENSE
ReadMe.md
app.rb
config.ru
credentials.yml

ReadMe.md

Sinatra Authentication Example

This Sinatra application demonstrates a simple authentication scheme. See Sinatra Authentication for a full explanation.

Prerequisites

The application depends on the following RubyGems:

Running

To run the application in development use:

ruby webapp/app.rb

and access using http://localhost:4567

Alternatively, to run the web application using a Rackup file use:

rackup config.ru (the config.ru may be omitted as Rack looks for this file by default)

and access using http://localhost:9292

Credentials

The credentials for signing in to the app are:

  • Username: user
  • Password: secret123