aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: c21a4dd3d3a60a17d82cf7a34d35ce8d47f6d7a4 (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
Session Exercise
================

This is an exercise designed to help illustrate how sessions can facilitate
authentication on the web.

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.