BennyPerumalla / QR-CODE-API

A Small QR-Generator Project
1 stars 2 forks source link

QR Code Generator API

This project consists of a QR Code Generator API using Node.js and Vue.js.

Project Structure

Getting Started

Backend

  1. Navigate to the backend directory.
  2. Run npm install to install dependencies.
  3. Start the server with node server.js.

Frontend

  1. Navigate to the frontend directory.
  2. Run npm install to install dependencies.
  3. Start the Vue application with npm run serve.

Usage

Enter text or a URL in the input field and click on 'Generate QR Code' to create your QR code.

Alternate way to run the application

1.Installtion of NODE JS :

Ensure you have Node.js installed on your machine. You can download it from Node.js official website.

2.Create a New Directory :

Create a new directory for your project and navigate into it:

mkdir qr_code_generator
cd qr_qode_generator

3.Create the File:

Create a new file named qr_code_generator.js and copy the qr_code_generator.js code into it.

4.Initialize npm:

Run the following command to create a package.json file:

npm init -y

5.Install Dependencies:

Install the required dependencies (Express and Axios):

npm install express axios cors

6.Run the Application:

Start your application by running:

node qr_code_generator.js

7.Access the Application:

Open your web browser and go to http://localhost:5000. You should see the QR Code generator interface.