Frontend is located at mmsr-tud-32/survey.
Create a user mmsr
with password mmsr
and a database survey
on mysql. Or add a .env.local
file which overrides the connection string to point to a different database.
php bin/console doctrine:migrations:migrate
symfony server:start
Copy app.yaml.sample
to app.yaml
and fill in the values.
Create a mysql database in Google cloud and fill in the values in the DATABASE_URL
.
A default bucket should be created when the app is deployed with the same name as the project e.g. mmsr-survey.appspot.com
.
Remove the scripts
section from composer.json
.
Run gcloud app deploy
.
See the Community Tutorial on running Symfony in App Engine for more info.
Requires title
, description
.
Returns the created survey
Returns the description title, description and images.
Add a new image to the survey
Requires name
and uuid of survey.
Returns id of the created submission and a list of images for practise and reals.
Returns the submission with progress
Set the answer on a question
Mark a submission as submitted.
A survey category allowing for multiple different surveys.
id | int |
uuid | uuid |
title | string |
An image in a survey. Containing a boolean to determine if the image is a fake.
id | int |
survey | int |
uuid | uuid |
fake | bool |
A submission by a user.
id | int |
uuid | uuid |
name | string |
submitted | bool |
A single answer to a survey.
id | int |
survey_id | int |
image_id | int |
fake | bool |