CiTi · Computer Coding · Year One · Unit 4
An introduction to the next large project: reading a real client brief for a data-driven website and web application
What purposes do databases serve? What distinguishes relational databases? What is normalization and why?
Today adds a project-sized version of the first question: what would a real business ask a data-driven site to do?
Hands-On:
#3 Build and deliver a website from a client brief
#4 Design a relational database (preview)
#6 Work a problem through Define → Prepare → Try → Reflect
Professional:
#1 Ask for help early
#4 Communicate to a non-technical audience
#5 Work through ambiguity
Reading a long technical document closely, sorting requirements by type, and explaining what a business needs in plain language.
Turning a client’s wish list into questions, and being honest about what you know and what you still have to learn.
Telling a public page from a database-driven page, spotting where a login is needed, and matching each requirement to the WebDNA tags that will carry it.
Students will read a client brief for a full web project and break it into parts, deciding which parts are plain pages, which need a database, and which need a login, so they can see the size of the project and where their skills stand today.
The brief reads the way a working photographer would write it: a business that needs a public face and a private way to run clients, previews, and a blog. Students are not building it today. They are learning to read it.
The client is Aimee Mohr Photography. The brief has two layers: the public website anyone can visit, and a password-protected web application behind it where the photographer and her clients do the real work. Students will build both, so today is about seeing the whole shape.
| Requirement | Database? | Login? | Main WebDNA tags |
|---|---|---|---|
| Public site | |||
| Homepage. Top nav with pull-downs; header, nav, vars, footer includes; brief of the latest blog post; random gallery image | Yes | No | include search foundItems |
| Contact. Name, address, email, comments; mail with date, time, and IP of sender | No | No | formVariables sendmail showif |
| About Us. Body copy plus a random gallery image, left or right | Yes | No | include search |
| Venues. Database-driven list; gallery pictures tied to each venue, shown when selected | Yes | No | search foundItems showif |
| Testimonials / Reviews. Image, quote, and a link to a supporting album | Yes | No | search foundItems |
| Client Login. Clients log in, see and approve preview albums; every login recorded; admin sees editing options | Yes | This is the door | search append setcookie getcookie showif |
| My Work. Gallery with data-driven category buttons, thumbnail then full size, JavaScript lightbox is acceptable | Yes | No | search foundItems formVariables |
| Blog / Journal. Title, date, body; logged-in users comment, visitors read-only; WYSIWYG editor; full archive | Yes | To comment | search append replace getcookie format |
| Web application (behind the login) | |||
| Password-protected section. Cookies keep the login; a logins table and a user history table (time, date, IP) | Yes | Yes | setcookie getcookie listCookies append |
| Include editor. Form-based editing of the include files from the browser, no FTP | No | Yes | formVariables writefile include |
| Client databases. Contact info with more than one contact type (email, phone) | Yes | Yes | search append replace |
| Image categories and file info. Tables plus editing forms for adding new ones | Yes | Yes | append replace search |
| Client schedule and calculators. Schedule and preview-delivery data; client logins with automated login email; record when a client sees a preview | Yes | Yes | math format function sendmail append |
Tag lists are the best fit for each requirement, not the only possible answer. Accept any reasonable match and ask the student why.
Besides the pages, the client set three design requirements. They are short, but each one points at something students will have to build.
The interface should not compete with the photos. Talk about neutral palettes and letting the images carry the color. This is a design judgment, so it makes a good discussion: what makes a page “loud”?
A large footer with navigation and social media links. Connects straight to footer.inc: build it once as an include and every page gets it.
Also called a parallax background, which is the term students will find when they search. The background stays put while the content scrolls over it. A true parallax effect, where the background moves at a different speed than the content, is desirable. Students will need a CSS background that is fixed to the window, plus a content container that floats above it. Watch for readability: text sitting directly on a busy photo is hard to read, so the container needs its own background or some transparency.
All colors in the students’ CSS must be hex or rgb values. HTML color names (white, gray, navy) are not allowed. This pairs well with the low-color requirement: a restrained palette is easier to control with exact values.
Today students only name these and say which one they would have to look up. Do not teach the CSS yet.
| Phase | What happens |
|---|---|
| Hook 5 min |
Before the handout: “A professional photographer hires you. What does she need on the internet?” Take answers on the board (gallery, contact, prices). Then: “What does she need that visitors never see?” (client previews, a calendar, a way to edit her own site). Keep the second list; the brief will confirm it. |
| Read the Brief 10 min |
Hand out the sheet. Read each section aloud, students following along. Pause on the unfamiliar: WYSIWYG, lightbox, cookies, include files. Students underline every phrase that says database, login, or email. Then read the Design Direction together and have students fill in how the site should feel, in their own words. |
| Two Layers 8 min |
Draw the line on the board: public site above, login wall, web application below. Ask where each hook-lesson idea belongs. Land the point: the login is the doorway between the two, and the brief says every login must be recorded. Name cookies as the thing that remembers who walked through. |
| Sort the Brief 10 min |
Students fill the sorting table on the handout: for each of the 13 requirements, does it need a database, a login, both, or neither? Circulate. Use the answer key above. The usual surprise: almost everything needs a database, including the About page, because of the random image. |
| Skills Map 7 min |
Show the 15 WebDNA tags the brief lists. Students tick the ones they have already used and guess what the rest do. Expect text, include, formVariables, sendmail, and showif / hideif to be ticked. Say plainly: this list is the map of the next several weeks, and nobody is expected to know the rest yet. |
| Closure 5 min |
Students write two questions they would ask the client and the page they would build first, with one reason. Share two or three aloud. Collect nothing; the handout is theirs. |
The brief is large on purpose. Resist walking through how each page will be built. The goal is that students leave thinking “that is a lot, and I can see how it breaks into pieces,” not “that is impossible.”
Connect back: includes, text variables, forms with sendmail, showif / hideif, and the relational-database lesson all show up in this brief. The Venues requirement (pictures from gallery records tied to a venue) is the relational idea from the game-store data map, one table pointing at another.
Not set here: grouping, point values, due dates, and the milestone plan. Add those when the build begins.
Formative only: no grade today. Circulate during the sorting table and check that students can say why a requirement needs a database or a login. The skills map and the client questions show where each student starts, which is useful when you plan the build.