Hi All!

The end goal here is to print QR code Christmas present tags that when scanned direct the person to a very simple page that just displays one image (per page, one page for each person). Before Christmas Eve, the image will be something generic, but on Christmas morning it will be the appropriate person’s name (I will swap the image on Christmas Eve, no need for fancy date recognition or anything).

I am sure this is a very simple job, but I am clearly not searching for the appropriate key words/tricky phrases to make my search results yield what I need. Just looking for instructions for how to create and self-host this, it only needs to be accessible on my local network…super simple.

Can anyone direct me to a guide or guides that will give me an idea of not just how to setup apache, mariaDB, etc, but then what to do to actually display something on the page?

Thanks!

EDIT: If there is a simpler non-self hosted option, I am all ears, but I don’t want to buy a domain, use WIX (or something similar), etc.

  • Jimbabwe@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    If it’s only on your local network, you can achieve this pretty easily with python’s built in http web server. Find a site that transforms urls into QR codes, save them in a directory on your computer, slap some html and css in there to present the QR code images how you want, and create a few simple routes for the corresponding images. Put it all in a index.html file, then open a terminal in that folder and type

    python3 -m http.server

    Read the docs on that command to specify the address and such. You’ll need that to be consistent for the QR code generation step.

  • umbrella@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    set up a web server (nginx is fine, bit any will do), and have each qr point to a different url in that server, each serving a plain html page with the image you want, quite simple really. dont forget to redirect the appropriate ports.