Enterprise · 2026
HughMob
News portal for Hugh Mob, a trap collective from Salvador, with a team panel and direct ads.
Technologies
Hugh Mob is a trap collective from Salvador, and the website is the movement's news portal: Brazilian rap, the international scene and events, with articles in Portuguese and, whenever the team wants, in English too. The home page builds its front page on its own from the latest posts, with a lead story, side stories and a trending section.
Behind the site there is a panel for the team, with its own login. There the team writes, edits, publishes and archives articles, and manages members and ads. Every important action (login, publishing, editing, deleting, creating an ad) is recorded in an audit log with the author, IP and browser, which the team can check right in the panel.
Ads were designed to keep the portal running. Each slot on the page (the home banner, the sidebar next to the lead story, between the news cards and the end of the article) can hold a direct ad, with a run period and impression and click counts. When a slot has no direct ad, a Google AdSense unit takes its place, and a failure in the ads never takes the news page down.
Security was handled from the start: article content is sanitized before it is saved, API input is validated with Zod, passwords use bcrypt, login and APIs are rate limited with Upstash Redis, and every response ships with security headers and a nonce based Content Security Policy that only opens what AdSense needs on public pages. The back end uses PostgreSQL with Prisma, Redis caching for articles and tests with Vitest.

