A simple, zero bloat, free and open source alternative to common QR Code Generators.
GENERATE /generate?link=qrLink&size=pixels
Parameter | Type | Description |
---|---|---|
qrLink |
string |
Required. Link of QR Code to generator |
pixels |
number |
Optional. Size of QR code (150 = 150x150) |
localhost:3000/generate?link=youtube.com&size=70
Clone the project
git clone https://github.com/connorakey/qr-code-generator
Go to the project directory
cd qr-code-generator
Install dependencies
npm install
Start the server
node .
Clone the project
git clone https://github.com/connorakey/qr-code-generator
Go to project directory
cd qr-code-generator
Build image
docker build . -t qr-code-generator
Deploy image
docker run -d -p 3000:3000 -p 3001:3001 --name qr-code-generator qr-code-generator
Ensure that the ports set in the docker run command are equal to the ports in the configuration.json file. The ports 3000 and 3001 ports are opened because of the backend and frontend websites.
To change the destination URL you must change the URL in configuration.json to your domain / ip
To change the ports enter the configuration.json and change the backend/front end ports to your desire, then enter backend.js and change the backend port.
Yes, you are allowed to edit the code as much as you want, but no support will be given.
Yes, you are allowed to but please fork the original repository.
I am not responsible for anything that goes wrong running this code, running it port forwarded may cause security issues and vulnerabilities.
Thank you, Connor, 10th of November, 2024, Year 7
Docker support added by Connor 21st of April 2025, Year 8