CiTi · Computer Coding · Year One · Unit 4
The AMP project: read the brief before you build anything
https://dev.citicoders.org/citi/coding/ampassets/
Images and other project files are here. The databases are released a few at a time as the project goes on, so check back often.
Your next big project starts with a client. Aimee Mohr is a professional photographer. She needs a website that shows her work, and she also needs a private place where she and her clients can run the business: log in, see previews, approve photos, and keep a schedule.
That is a data-driven web application. Today you are not building it. You are reading the client’s brief the way a developer does on day one: find out how big it is, how it breaks into pieces, and what you already know how to do.
Learning goals: understand the fundamentals of building a data-driven web application, and gain experience managing a full web project.
The brief describes two things stacked on top of each other. Everything in the top layer is open to any visitor. Everything below the login wall needs a password.
Anyone on the internet can visit these pages. Some pull their content out of a database.
Behind the login. The photographer and her clients use it to manage the business.
↑ public · login wall (cookies remember who you are) · private ↓
Read each one. Underline every phrase that mentions a database, a login, or an email.
Top navigation with pull-down selections for admin forms. Include files for header, nav, vars, and footer. Shows a brief of the latest blog post and a randomly rotating image from the gallery.
Form with name, address, email, and comments. Email is delivered with the date, time, and IP address of the sender. Other input items may be requested by the client.
General body copy (text supplied by the client), coupled with a random gallery image to the left or right of the copy.
A database-driven listing of venues the client has used or can use. Pictures from various gallery records are tied to each venue and show up dynamically when it is selected.
A database-driven area that displays reviews and testimonials about the client. Each one allows an image, the quote, and a link to a supporting album.
A database-driven area where clients log in, see, and approve preview albums of photoshoots. The admin also sees editing options for site content from this login. ALL logins MUST be recorded in a login database.
A photo gallery with descriptions of the client’s categories. Each photo is clickable: a larger view, then a full-size view. Category buttons must be data driven, for addition and sorting. A JavaScript lightbox is acceptable.
Title, date, and body copy, with an admin section to write posts. Logged-in users can comment; general visitors read the comments only. Body copy is edited with a JavaScript WYSIWYG editor. A full archive shows previous entries.
Aimee also told us how the site should look. A photographer’s site is a frame for her photos, so the design has to stay out of their way.
Keep the interface quiet so it does not compete with the photos. The photos are the color on the page.
A large footer on every page with site navigation and social media links.
Background images that stay put while the page scrolls, with the content floating on top of them. Also called a parallax background. A true parallax effect, where the background moves at a different speed than the content, is desirable.
Every color in your CSS must be a hex code or an rgb value, such as #333333 or rgb(51, 51, 51). Do not use HTML color names like white, gray, or navy.
These are in addition to everything above.
Cookies record the login and keep a history of logins. Needs a logins table (usernames and passwords) and a user history table (time, date, IP address, login info).
A form-based editor that lets admins edit the include documents from the browser, without FTP.
Client contact info, with multiple contact types (such as email and phone).
Tables for image categories and file information, with editing forms for adding new ones.
Databases for client schedules and delivery of session previews. Clients get a specific login and an automated email with their login info. The system records when a client logs in and sees a session preview.
For each of the 13 requirements, decide: does it need a database to store or look up information? Does it need a login so only certain people can use it? It can need both, one, or neither.
| # | Requirement | Database | Login |
|---|---|---|---|
| Public site | |||
| 1 | Homepage | ||
| 2 | Contact Page | ||
| 3 | About Us Page | ||
| 4 | Venues | ||
| 5 | Testimonials / Reviews | ||
| 6 | Client Login | ||
| 7 | My Work | ||
| 8 | Blog / Journal | ||
| Web application | |||
| 9 | Password-Protected Section | ||
| 10 | Include Editor | ||
| 11 | Client Databases | ||
| 12 | Image Categories & File Info | ||
| 13 | Client Schedule & Calculators | ||
The brief ends with a list of the WebDNA tags this project uses. Tick the ones you have already used. For every tag, write a guess at what it does. Guessing wrong is fine; this list is the map of what you are about to learn.
| Tag | I’ve used it | What I think it does |
|---|---|---|
| showif / hideif / if then | ||
| search / foundItems | ||
| replace / append | ||
| include | ||
| setcookie | ||
| getcookie | ||
| listcookies | ||
| sendmail | ||
| formvariables | ||
| listvariables | ||
| text | ||
| format | ||
| math | ||
| function | ||
| writefile |
A real developer would not start coding yet. What would you ask Aimee first? (Example: what should happen when someone types the wrong password?)