← Portfolio

Feedback App

The real app, built for the web.
About 10 MB, loaded from this site.

Try it

  • Start survey runs the selected survey. After the last question, Done hands it to the next person.
  • Choose template lists the five example surveys; tap one to select it.
  • Show results has every round, with charts. Your rounds show up there too.
  • Upload and sync are switched off here, so nothing leaves your browser. Reset brings back the examples.

Survey

The question “How did you like today’s lecture?”, answered with three smileys The question “How clear was today’s material?”, answered on a scale from 0 to 10 The last question, answered with free text or skipped The thank-you screen with a Done button

Results

The list of finished rounds of the five surveys with their number of answers Results of 50 answers: 10, 16 and 24 for the three smileys, and bar charts with the average The free-text answers as a numbered list, with a button to show more

Classes

Class diagram of the feedback app, storage and models: two local storages and an API client; a SurveyTemplate and a SurveyResult contain SurveyQuestions; each question has an AnswerType, each response is a list of Answers; AnswerType, Answer, the storages and the answer inputs each have three or two subclasses.

Backend

The backend in AWS (us-east-1, AWS Academy Learner Lab). On the phone, SurveyResultApiClient sends upload(result) as POST /results and fetchAll() as GET /results to the REST API SurveyResultsRestApi, stage prod. API Gateway passes POST /results to the Lambda function saveResult, which checks the JSON and its five fields and stores it with put_item (answer 201); GET /results to listResults, which reads the whole table with scan; GET /results/{id} to getResult, which reads one result with get_item (404 if there is none). All three use the DynamoDB table SurveyResults, key id.