Skip to content

A small web server encoding strings into dataURL:s

Notifications You must be signed in to change notification settings

Andersclark/qr-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QrServer

Description

A simple Node+Express app for outputting QR-codes based on requests.

Internals

This is pretty rudimentary: A webserver that responds to a single url-parameter by generating a qr-code encoded in a DataURL. The server has a small run-time cache and that is it.

If you simply want code for generating QrCodes, than the dependency in use here is: qrcode

How to run

  1. Clone the repo
  2. Navigate terminal into folder
  3. Install dependencies with npm install
  4. Start server by typing npm start
  5. Open a browser and navigate to http:https://localhost:3000/{YOUR TEXT HERE}
  6. The server should respond with a data-url.

About

A small web server encoding strings into dataURL:s

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published