There are three options this week. Complete them all and collect additional bonus points!
Chris thinks you nailed it on these easy CMSs
He wants us to start being able to go after bigger clients with more complex workflows and media needs
He knows Drupal is the only tool for the job, but he’s not sure the team can rough it
He wants to use a known model that worked before but integrate it into Drupal
Use your ER Diagram / relationship work from the first
Simplify parts of it where it isn’t needed
For example Drupal automatically makes unique IDs
Make sure you create content types at least for:
Patient
Hospital
Geographic Location
Add types and fields based on your diagrams
Create at least 5 pieces of fake data per content type
This way queries / displays make sense in your video
Relationships between types are called:
Field type : Reference, under that Content
This allows a content type to reference another one
Set up your Drupal site to act as a headless backend
Get the JSON Formatter chrome plugin
Enabling Web Services modules expose the following path:
jsonapi/node/{type-name-here}
Explain front end input relation of data to the JSON based output
Explain how headless applications could consume this data and the relation between content people see and content that APIs consume
Create two views to list each content types’ data
Patient list --- /patients
Include patient fields with reference to hospital and geographic location (whatever matches your model)
Hospital list --- /hospitals
Include Hospital fields and reference to geography OR a list of patients in each hospital
Demonstrate adding fields to the view
Explain the correlation to SELECT / “Read” statements
Inspect the database’s SQL tables using PHPMyAdmin
Trace saving content and fields into their storage location
Hint: drupal_node drupal_node__body drup_node__field_hospital_name
Explain the relationship of the front end to their storage location
Compare / contrast with Grav and WordPress of the past two weeks
Singular storage vs highly abstracted content storage
Complete more than one option
+25% (2pts) per additional option
Do all three options; get up to 12 pts (+50% a lab’s value)
Declare which your primary option is and what’s bonus
Video’s obviously would be longer in this case
No writing this week, just create the site with requirements
Embed video on the front page of your Drupal site
Submit link to post in #lab8-drupal channel on Slack
This is due by Sunday at 11:59pm
Did you model data relative to your ER Diagram (2pts)
Did you create / configure the site to accomplish the option (2pts)
Demonstration of technique / explanation in video form based on option selected (4pts)
Evaluation is contextual based on which option you pick.
If you need help, just ask; this is not a gimme lab