aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: b2efee4931374446742787423065578fb0f8ef64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Session Exercise
================

This is an exercise designed to help illustrate how sessions can facilitate
authentication on the web. It was written for one of my students at [The
Firehose Project](http://www.thefirehoseproject.com/).

Fill in the route blocks in `app.rb` such that POSTing the accepted user
credentials to '/' log the user in using the session, and display the logged in
template.

With `Rack::Session::Cookie`, the session is accessible via a hash called
`session`.


## Installing
Run

	$ sh setup.sh

to install the required gem dependencies.


## Running
Run

	$ make

to start up the development server and see changes to the app.


## Testing
Run

	$ rake

to run the app's tests.