25N Awareness Wall · Server, data and moderation
Builds the Flask app with SQLite. It receives and stores messages, password-protects the screen and admin panel, allows content moderation and rotates the projected views.
Project context
For 25N, a web page will be projected on a screen at the school, rotating between three views: a bubble wall with messages, an awareness video and a reflection forum. The public does not see that screen on their phones: they only scan a QR code that opens a form where they can leave a message for the wall or a reflection for the forum. A moderator reviews the content from an admin panel.
Scope of this part
This part builds everything that happens on the server: the database, receiving submissions, protecting the private areas, the moderation panel and the logic that drives the screen. The visual side (form, bubbles, forum cards, video and styles) is developed independently by another group, so the work must follow the shared contract described below.
What to build
- Flask app with SQLite (T01)
- Two tables:
mural(short messages, visible by default) andforo(reflections with a title, hidden until approved). - Public routes that receive the forms, validate the text and store it, then show a thank-you page.
- Two tables:
- Protected access and API (T02)
- Username and password (HTTP Basic Auth) for the screen and the admin panel, with passwords read from environment variables.
- Two routes returning only publishable content as JSON: visible messages and approved reflections.
- Moderation panel (T03)
- A server-rendered page listing messages and reflections, with buttons to hide, show, approve and delete.
- Screen engine (T04)
- A page with three sections shown in turn. The video moves to the next view when it ends.
- Every few seconds it requests the data from the API and passes it to the other group's drawing functions.
- Launch (T05)
- Integrate the other group's work if it is already available; otherwise, leave minimal templates that follow the contract so it can be added later without changes.
- Start the app on the chosen hosting and test the full flow from a phone.
Moderation rules
- Wall: published immediately, hidden if inappropriate.
- Forum: nothing is shown until approved, because it may contain real cases.
- No personal data is stored.
Non-negotiable rules
- SQL queries are always parameterized, never built by joining strings.
- Server-side validation: no empty texts and nothing longer than allowed.
- The API never returns hidden or unapproved content.
- No password is written in the code or pushed to the repository.
Contract with the other group
- Structure:
app.py,templates/(participa.html,gracias.html,admin.html,pantalla.html) andstatic/(mural.js,foro.js,video.js,pantalla.js,estilos.css,qr.png,video.mp4). - Form fields:
texto(wall,POST /mural);tituloandtexto(forum,POST /foro). - API format:
GET /api/mural→[{id, texto}];GET /api/foro→[{id, titulo, texto}]. - Containers in
pantalla.html:#vista-mural,#vista-video(with<video id="video25n">) and#vista-foro. - Functions provided by the other group:
pintarMural(mensajes),pintarForo(reflexiones),iniciarVideo()andpararVideo().
Out of scope
Automatic word filter, anti-spam, user accounts and any public read-only view.