Skip to content
ProjectsProject 05 / 06

~/mgl $ cat /projects/twice/README.md

TWICE

A classifieds platform for a company's employees only, with no servers to maintain, for about US$10 a month.

Year
2026
Status
Internal tool
Listing an item in TWICE: reorderable photos, details, a catalogue preview and a “Before publishing” checklist.

~/mgl $ cat /projects/twice/challenge.md

The challenge

Client
Internal company tool · Classifieds
Our role
Development and serverless AWS architecture

In a company of about 70 people, employees sell or give away items to each other, and the company sells off its own equipment.

They needed a simple space for employees only, with no online payment: you post, someone reserves, the seller confirms, and accounting is told when the company is the seller. On the security side: no public sign-up and mandatory multi-factor authentication, since the site may be reachable from the Internet.

TWICE on a phone: the listing preview as it will appear in the catalogue, then the pre-publishing checklist.
fig. 01 — On a phone, the preview before publishing
An item page in TWICE, on demo data: photo, price, condition, category, seller and a “Buy” button.
fig. 02 — A listing, ready to be reserved
Purchase confirmation in TWICE, on demo data: the item is reserved for a single buyer, and no payment goes through the tool.
fig. 03 — A confirmed reservation, with no online payment

~/mgl $ cat /projects/twice/solution.md

The solution

Employees sign in with their company Microsoft account, and access is updated every morning from the directory. Listings go up in a few clicks, and photos are stripped of their personal data, GPS location included, before being shown. It all runs on AWS, with no servers to maintain.

  1. // 01One way inEverything goes through a single protected entry point; any other attempt is blocked before it reaches the application.
  2. // 02No stored passwordsTechnical access is temporary and renewed automatically: no keys to protect.
  3. // 03Risk-free updatesEvery change is tested before it goes live, and rolling back to the previous version takes seconds.
  • Django
  • AWS Lambda
  • Aurora DSQL
  • CloudFront
  • OpenTofu

~/mgl $ cat /projects/twice/architecture.md

TWICE’sarchitecture

TWICE runs on AWS in Montreal, with no servers to patch: code only runs on demand, and the bill follows actual usage. Data is backed up every day, and the whole infrastructure is described in code, so it can be rebuilt identically.

~/mgl/twice $ tofu graph | dot

TWICE's architecture diagramThe browser goes through CloudFront and its firewall, which serves files from Amazon S3 and forwards page requests to the Lambda function running the Django site. It reads and writes to Aurora DSQL and hands emails to Amazon SES.aws · serverless · montreal[01]clientbrowser[02]cdncloudfront · waf[03]lambdadjango site[04]dsqlaurora sql[05]s3photos · assets[06]sesemailsrequestresponse
  1. [01]clientbrowser
aws · serverless · montreal
  1. [02]cdncloudfront · waf
    • [03]s3photos · assets
  2. [04]lambdadjango site
    • [05]sesemails
  3. [06]dsqlaurora sql
Listing an item in TWICE: reorderable photos, details, a catalogue preview and a “Before publishing” checklist.

~/mgl $ cat /projects/twice/results.csv

The results

Rolling back to the previous version has been tested in production, with no downtime. A classic server-based architecture would have cost about US$70 more a month, by our estimate.

≈US$10a month for hosting
≈70employees, and no one else
0public sign-ups

~/mgl $ mail -s "Re: twice" hello@mg-l.net

Have a similar project in mind? Let’s talk: we reply within one business day.

Contact us

~/mgl $ ls /projects | grep -v twice

See more projects