CMPT 370 project
JavaScript C# CSS
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LeisureOnline
Proposal 5
UML Model
UnitTestProject1
packages
.gitattributes
.gitignore
LeisureOnline.sln
README.txt

README.txt

LeisureOnline
=============

Repo: Our code is hosted at https://github.com/LeisureSoft/LeisureOnline/

Build dependencies
------------------

1. Visual Studio 2012
2. Web developer tools for VS 2012
3. ASP.NET MVC 4 from http://www.asp.net/downloads


How to run
----------

1. Open the Visual Studio solution (.sln) in Visual Studio 2012 (may work in other versions,
   but we tested with 2012 only).

2. Make sure you have the web developer tools and ASP.NET MVC 4 installed.

3. Simply press F5 to build the website in Visual Studio and automatically open it in your
   browser.

!! If you have trouble running our project for some reason we can by all means show you the
   project running on one of our laptops. We may also host our site on an online hosting
   service soon (but not at the time of writing).


Implementation of primary success scenarios
-------------------------------------------

Register account:
  - Click 'Register' near the top of the page.
  - Fill out your information (fake or whatever)
  - You will then be logged in (it will say "Welcome, <username>!" at the top)
  - We've also implemented some input validation, such as password and email confirmation
    and required vs. optional fields, plus minumum password length and email validation
  - The boxes need to be reorganized to look better but we did not have time for this

Log in:
  - Click 'Log in' near the top of the page.
  - Fill in your username and password
  - You will then be logged in (it will say "Welcome, <username>!" at the top)

Log out:
  - Simply click 'Log out' near the top of the page.

Browse programs:
  - Click 'Programs' near the top of the page
  - Observe the list of sample testing programs
  - The add/edit/delete buttons will be hidden for regular users, but shown for employees

Search programs:
  - Click 'Programs' near the top of the page
  - Type in a search query such as "swim training"
  - Observe the list of sample testing programs matching the search terms

Add program:
  - Log in as an employee
  - Visit 'Programs'
    - If this seems unintuitive one may also find it via the 'Manage programs' link on the 'Admin' page 
  - Click the 'Add program' link
  - Fill in the name and description

Add program offerings:
  - Log in as an employee
  - Find the program via browse or search
  - Click on the link to the program description (click program name)
  - Click 'Add new offering'
  - Select instructor and facility from dropdown lists
  - Click 'Submit'

Add offering times:
  - Log in as an employee
  - Find the program via browse or search
  - Click on the link to the program description (click program name)
  - Click 'Add new offering time' under an offering
  - Enter start and end times
  - Submit

Delete offering/offering time/program:
  - Log in as an employee
  - Notice 'Delete' links variously on 'Browse programs' and 'Search programs', program details
    pages, etc

Edit program/program offering:
  - Log in as an employee
  - Notice 'Edit' links on programs and offerings
  - Click 'Edit' and change details and Submit

Add/remove instructors:
  - Log in as an employee
  - Visit 'Manage instructors' on the 'Admin' page
  - Type in a username to add an instructor or click to remove an instructor from the list

Add/edit/remove facilities:
  - Log in as an employee
  - Visit 'Facilities' page
  - Notice add/edit/remove links only visible for employees

Browse programs by facility:
  - Visit 'Facilities' page
  - Click on a facility to see the list of programs offered at that facility

Register in a program:
  - Browse/search for programs
  - Click on a program with more than 0 offerings
  - Click 'Register' on one of the offerings and fill out payment information
  - Use the sample valid credit card number 378282246310005
  - The other fields are not validated as we don't communicate with real bank servers,
    this system is just a mockup

Unregister from a program:
  - EITHER: Visit 'My Programs'
  - OR: Find the program offering the same way you did when registering
  - Then click the 'Unregister' link and confirm

View programs I'm registered in and/or programs I'm teaching:
  - Log in
  - Visit the 'My programs' tab
    - Instructors can see which programs they are instructor for

Change password
  - Log in
  - Visit 'My account' and click 'Change password'


Test Data
---------
The system is prepopulated with test data. Most importantly it has 3 default accounts which you
should use for testing the system.

Account: jane,  Password: pw, Employee
Account: joe,   Password: pw, Normal user
Account: janis, Password: pw, Instructor

Sample valid Credit Card Number: 378282246310005

Note that admin options are visible to jane but invisible (and completely disallowed) to joe and janis.