Skip to content

hrosicka/qr-code-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

15 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ QR Code Generator – Turn Your URLs Into Pixel Art!

Welcome to the digital wizardry workshop, where boring URLs are transformed into mysterious QR glyphs.
Just type in your link, press the button, and voilΓ  – your very own QR code is born!
This is QR Code Generator, powered by Python, Flask, and a pinch of magic. ✨


How to Use?

  1. Launch the app:
    python main.py
  2. Open your browser at localhost:5000.
  3. Paste any URL into the form.
  4. Behold your QR code! Download it, share it, or show it off to your grandma. πŸ–ΌοΈ

Why Should You Use This?

  • Because typing endless URLs is boring, but showing off a QR code is classy! 😎
  • Works faster than your morning coffee. β˜•
  • Friendly UI – so simple, even your cat could use it. 🐾

How Does It Work?

  • Powered by Flask – no complicated stuff, just pure Python bliss.
  • QR code magic by the qrcode library.
  • Output is beamed directly to your browser as an image, ready to scan.

Testing

Application quality is checked with automated tests.
You’ll find test files in the tests/ directory.

End-to-End UI Tests with Playwright

To make sure the user interface works and QR codes are generated correctly, we use Playwright for end-to-end testing.

How to run Playwright tests

  1. Make sure Playwright is installed:
    pip install playwright
    playwright install
  2. Start the app (python main.py) – it should run in the background.
  3. Run the Playwright tests from the tests directory:
    pytest tests/

The tests check that:

  • The application is reachable.
  • A QR code can be generated from a URL.
  • The results are correctly displayed in the UI.

If you want to add your own tests, check out tests/test_app.py for inspiration.


Author

Lovingly crafted by Hanka Robovska


License

This project is licensed under the MIT License. See the LICENSE file for details. Free to use, modify, and distribute as needed.

About

QR Code Generator 🌟 is a project designed to generate QR codes quickly and efficiently πŸ“±βž‘οΈπŸ“·. Built with Flask 🌐, it utilizes HTML πŸ–ΌοΈ and CSS 🎨 for a sleek and user-friendly interface. Say goodbye to manual QR code creation and let this app handle the magic! πŸš€

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors