Skip to main content
Back to projects

Case study

Encuestas

Survey builder and analytics

Web platform to build surveys, distribute them via QR code and analyze results with IA, charts and PDF export.

Role

Fullstack development: frontend (Angular) and backend (NestJS).

Stack

AngularTypeScriptPrimeNGChart.jsNestJSTypeORMPostgreSQLPDFKit
1 / 4
The problem

Gathering input from a group of people usually ends up as loose forms with answers analyzed by hand in a spreadsheet. There was no tool that combined creation, distribution and analysis in a single flow.

Technical decisions

Angular with standalone components and PrimeNG for dynamically building forms with different question types (open-ended, single choice and multiple choice).

Two independent QR codes and links per survey: one for respondents to answer it, and another for the interviewer to access the results directly, without exposing long URLs.

TypeORM query builders for aggregated statistics, instead of pulling all responses to the frontend and processing them there.

Server-side PDF report generation with PDFKit, so the output is consistent regardless of the user's device.

Challenges

Integrating an AI model to analyze open-ended answers was the biggest challenge: it had to surface the most frequent words as badges and generate a coherent summary of all the responses, while keeping response times reasonable and results consistent across surveys.

Learnings

Computing statistics in the backend with SQL instead of on the client drastically reduced load time on surveys with a large number of responses.