Skip to the content.

Individual final • 8 min read

MY INDIVIDUAL FEATURES

Backend for Feature 1 Frontend for Feature 1 Backend for Feature 2 Frontend for Feature 2

  • Added the backend POST method and function to allow users to ask a question publicly, after testing the functionality through postman, I fetched this on the frontend as shown.

Requirement 1:

    Instructions for input for one of the following
        - the user(including user actions that trigger events)
        - a device
        - an online data stream
        - a file
  • How I adressed the first CPT requirement

    FEATURE 1: I required user to input a question that they are curious about. I required the question to have a minimum of 10 characters. Once the user posts a question it is then stored in our sqlite database and alerts the user that their question has been saved and that they will recieve a response soon.

    FEATURE 2: After the user searches for a question from the database they are redirected to a dynamic webpage in which it will display whichever question they have chosen to either respond to or view responses too. In the function defined as reply_api in the frontend it requires input from the user so that the comment can be posted. Once the user hits enter the browser will alert them saying that their response has been received then the page automatically refreshes and portrays their response in a formatted fashion. This response will now be visible to anyone that views the question. The formatted response also displays the username of the user that posted it.

Requirement 2:

Use at least one list (or other collection type) to represent collection of data that is stored to manage program complexity and help fulfill the programs purpose.

  • How I adressed the second CPT requirement

    FEATURE 1: After the user inputs their question and the browser alerts them that their question has been sent and that they will recieve a response soon, their question gets stored onto our sqlite database with a unique id as shown in the image of our POSTS datbase.

    FEATURE 2: After the user inputs their response/comment on a specfic question their response is also stored on our sqlite database and has its own unique id and is also appended as a child under the unique id of the question as demonstrated by the image above.

Requirement 3:

Included parameters in my programs are, the userid or to the user displayed as the username, the date of the question asked which is stored in the database as “doq”, the parentPostId which is the id of a question stored inside of the id of the user. So if we were to test a GET method of a specific user it would also show under their id their quesitons and responses. The note parameter in the POSTS database stores the questions.

KEY COMMITS

Commit1

Commit2

My Trimester 2 grade:

OVERALL RETROSPECTIVE

Throughout this process I realised my potential for leadership and problem solving. Throughout the process of making Collabora I was exposed to the true power of agile methodology and working efficentely together as a team. This enlightened not only my capabilities as a leader but also my strenghts at problem solving and my desire to acheive the end result despite the external factors like time and lathargy that come into play.