This project consists of a QR Code Generator API using Node.js and Vue.js.
backend
directory.npm install
to install dependencies.node server.js
.frontend
directory.npm install
to install dependencies.npm run serve
.Enter text or a URL in the input field and click on 'Generate QR Code' to create your QR code.
Ensure you have Node.js installed on your machine. You can download it from Node.js
official website.
Create a new directory for your project and navigate into it:
mkdir qr_code_generator
cd qr_qode_generator
Create a new file named qr_code_generator.js
and copy the qr_code_generator.js code into it.
Run the following command to create a package.json
file:
npm init -y
Install the required dependencies (Express and Axios):
npm install express axios cors
Start your application by running:
node qr_code_generator.js
Open your web browser and go to http://localhost:5000
. You should see the QR Code generator interface.