Faculty of Engineering and Mathematical Sciences 
Not logged in (login)


This forum is provided to promote discussion amongst students enrolled in Agile Web Development (CITS3403).
RSS cloud
Jump to:

Project 2 - Database Migrations, Schema Design, AJAX

1 of 419 articles shown, currently no other people reading this forum.
From: Haolin W.
Date: Thu 14th May 2020, 9:15am


Hi Matthew. Tim had some great points, and just to tag on and add a few more. 

Completely understand the issue with migrations, happens all the time if the migrations don't 
reflect the actual database status. As Tim said, shouldn't be a problem, but I will say that 
if you are versioning everything correctly with Git and GitHub, your migration/model changes 
should be reflected in there. Everything will be versioned.

I think Tim's resource for your second question is pretty good.

Regarding DOM Manipulation and AJAX, the best way to visualise this is more related to how 
you're setting up questions. Do you have multiple questions on the same page? How are you 
submitting them? Are you allowing drafting of questions? Do you have feedback/comments on a 
page? Questions like this will determine if you 'need' AJAX. The purpose of using AJAX in a 
project like this is really to significantly improve user experience + give you a real world 
example of how things are done with modern stacks. Take the example of having 5 questions on 
the same page. How do you allow a user to submit a draft? Your submit button with flask and 
server side rendering will refresh the entire page, and without some hacky code, will put 
them back at the top of the page. With AJAX, it allows live updates to create/modify an 
existing database field, without any movement of the page or page refreshing. Significantly 
better user experience. Just imagine if every time you sent a facebook message your entire 
browser refreshed.

Your question types and approach seem fine. Let me know if you need anything else. 

Related articles

Project 2 - Database Migrations, Schema Design, AJAX (all 3) RSS
├─ original   Wed 13th May 2020, 7:54pm, Matthew C.
├─ reply 1   Wed 13th May 2020, 10:29pm, Timothy F.
└─ THIS   Thu 14th May 2020, 9:15am, Haolin W.
This Page

Program written by: [email protected]
Feedback welcome
Last modified: 11:27am Sep 21 2020