Flask application for generate QR Code pointing an URL passing input
First, you need to clone this repository:
$ git clone git@github.com:jighen555/generateQRCode.git
Or:
$ git clone https://github.com/jighen555/generateQRCode.git
Then change into the flask-examples
folder:
$ cd generateQRCode
Now, we will need to create a virtual environment and install all the dependencies:
$ python3 -m venv venv # on Windows, use "python -m venv venv" instead
$ . venv/bin/activate # on Windows, use "venv\Scripts\activate" instead
$ pip install -r requirements.txt
Just execute these commands:
$ flask run
The applications will always running on http://localhost:5000.
You can call /generateQRCode
and pass a JSON input file like this:
{
"url": "http://www.google.com"
}
The API save a QR Code on the same folder.