Git Product home page Git Product logo

qr-code-generator's Introduction

QR-Code-Generator.

Provides a simple API for generating QR codes based on user input.

Dependencies

The project relies on the following dependencies: Express, Body-parser: Middleware for parsing incoming request bodies, qr-image, cors. Google Auth Library: A library for implementing Google Sign-In API.

Installation

To run the QR Code Generator project locally, follow these steps:

  1. Clone the repository: git clone https://github.com/Sergius-Nyah/QR-Code-Generator.git
  2. Navigate to the project dir: cd QR-Code-Generator
  3. Install dependencies npm i express body-parser qr-image cors fs url bodyparser path google-auth-library
  4. Start the server: nodemon src/App.js npm start
  5. Access the API at http://localhost:3000. *** Before starting, enable Cross Origin Request Sharing. npm i --save-dev @types/cors

Usage

To generate a QR code, send a POST request to the /qr-code endpoint with the desired URL as the request body. The server will respond with a downloadable QR code image.

Example request using cURL: curl -X POST -H "Content-Type: application/json" -d '{"url": "https://example.com"}' http://localhost:3000/qr-code (alt text)

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a PR (:)..:

qr-code-generator's People

Contributors

sergydwhiz avatar lyubomirt avatar

Stargazers

Tataw. Clarkson  avatar h3x0r avatar  avatar Tony Daniel avatar

Watchers

 avatar

qr-code-generator's Issues

API call not working.

The call (/generate-qr) in the HTML section doesn't work properly. I keep on getting an Error message of status code 404 when I try to access it in a chrome web browser.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.