Agile Web Development with Rails - Princeton University

tunisianbromidrosisInternet και Εφαρμογές Web

5 Φεβ 2013 (πριν από 4 χρόνια και 7 μήνες)

125 εμφανίσεις

CWCW System Demo

Campus Web Council of Wisconsin

Brian Hogan and Lillian Hillis

University of Wisconsin
-
Eau Claire

CWCW Demo


Very active organization of Web developers
throughout the state of Wisconsin


Meet 2
-
3 times a year


Started saving information about ourselves


Word document


WIKI


Now we need something better


Seemed like a simple first system


What is CWCW?

Brian Hogan and Lillian Hillis

University of Wisconsin
-
Eau Claire

CWCW Demo


Connect the concepts:


Model


Views


Controllers


Partials


--
To how it’s actually done


Programming background is helpful


My background


COBOL, RBase, Foxfire


10 years ago!


Just barely started with Rails


Anyone can create a simple Rails Web system



What Will the Demo Prove?

Brian Hogan and Lillian Hillis

University of Wisconsin
-
Eau Claire



Unless
you
want
to
have
fun!

Brian Hogan and Lillian Hillis

University of Wisconsin
-
Eau Claire

CWCW Demo


Agile Web Development with Rails

(Thomas/Hansson)


In Second edition


Instructions for installing Ruby (scripting language) and
Rails (application framework)


Great tutorial


Tutorial uses MySQL


Other databases can be used


drivers needed



Learn to Program

(Chris Pine)


Ruby scripting language


The Setup…

Brian Hogan and Lillian Hillis

University of Wisconsin
-
Eau Claire

CWCW Demo


Editor


Ruby comes with SciTE


don’t recommend


Notepad ++ lightweight editor


Eclipse for Rails


RadRails


Textmate for Macintosh


Server


Rails comes with WEBrick, a standalone Web
server

The Setup…

Brian Hogan and Lillian Hillis

University of Wisconsin
-
Eau Claire

CWCW Demo


Use cases


Campus member adds/changes information about an
institution belonging to CWCW


Members add/change information about their positions


Members search for information on topics related to
the web issues



Forms survey software being used



Stats packages being used



Hardware, servers, platforms



Policies and guidelines


Members search for information on types of Web
positions or expertise of particular individuals

The CWCW Application

Brian Hogan and Lillian Hillis

University of Wisconsin
-
Eau Claire

CWCW Demo


Translation into Rails:



Database: CWCW


Models: Institution, Member


Institution model: has_many: members


Member model: belongs_to: institution


Tables: institutions and members


We’ll let Rails create a basic CRUD system



The CWCW Application

Brian Hogan and Lillian Hillis

University of Wisconsin
-
Eau Claire

CWCW Demo

Let’s get started…

Brian Hogan and Lillian Hillis

University of Wisconsin
-
Eau Claire

CWCW Demo


Created a Rails application


Created a mySQL database


Generated models and migrations


Ran the migrations to create tables and
columns


Generated scaffolds


Added style, functionality and validation




What We Just Did