Skip to content

Latest commit

Β 

History

29 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

Python Version Framework: Flask E2E Tests: Playwright GitHub Stars Author: Hanka GitHub License

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

To run the test suite successfully, follow these exact steps:

Step 1: Install Dependencies

Make sure you have both pytest and playwright installed, along with the required browser binaries:

pip install playwright pytest
playwright install
Step 2: Start the Application

The web application must be running in the background for the UI tests to connect to it. Start the app in your terminal:

python main.py

(Leave this terminal window open so the server keeps running!)

Step 3: Run the Tests

Open a new, separate terminal window/tab, navigate back to your project root directory, and run the tests:

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

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages