QR Code Generator with Vue.js
This Vue.js application generates customizable QR codes using the @chenfengyuan/vue-qrcode
library. Users can generate both SVG and Canvas-based QR codes with various customization options.
To run this application locally, follow these steps:
-
Clone the repository:
git clone <repository-url>
-
Navigate to the project directory:
cd <project-directory>
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
SVG QR Code Generation: Generates SVG-based QR codes with customizable options such as error correction level, width, and color.
-
Canvas QR Code Generation: Generates Canvas-based QR codes with similar customization options as SVG.
-
SVG Download: Users can download the SVG version of the generated QR code by clicking on the SVG QR code image.
-
PNG Download: Users can download the PNG version of the generated QR code by clicking on the Canvas QR code.
-
SVG QR Code Generation:
- Locate the "QR CODE Example" section on the main page.
- Under "SVG", an example QR code generated using SVG is displayed.
- Customize the QR code parameters such as
errorCorrectionLevel
,width
, andcolor
to generate QR codes according to your preferences.
-
Canvas QR Code Generation:
- Below the SVG example, you'll find another example QR code generated using Canvas.
- Customize the Canvas QR code parameters similar to SVG QR codes.
- This application utilizes the
@chenfengyuan/vue-qrcode
library for QR code generation. - SVG download functionality adapted from soldair/node-qrcode.