A minimalist, high-performance API and web interface for generating QR Codes on the fly. Built with Spring Boot and ZXing.
- Fast & Lightweight: Built with Spring Boot.
- Minimalist UI: Dark-themed, clean web interface for quick generation.
- API First: Simple REST endpoint for easy integration.
- PIX Ready: PIX "Copia e Cola" compatibility, you can generate QR Codes for PIX transactions from "Copia e Cola" keys.
- Docker Ready: Includes Dockerfile and Compose setup for easy deployment.
- Java 21
- Spring Boot 4.0.2
- ZXing (Zebra Crossing) for QR Code generation
- Maven
- Docker
- Java 21 JDK
- Maven (or use the included
mvnwwrapper) - Docker (optional)
-
Clone the repository:
git clone https://github.com/aramizo/qrcode-generator.git cd qrcode-generator -
Run with Maven Wrapper:
./mvnw spring-boot:run
-
Access the application at
http://localhost:3000.
-
Build and start the container:
docker-compose up -d --build
-
The application will be available at
http://localhost:3000.
Endpoint: GET /generate
Query Parameters:
content: The text or URL to be encoded in the QR Code.
Example Request:
GET http://localhost:3000/generate?content=https://example.comResponse:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADIAQAAAAC...
This project includes a Dockerfile and docker-compose.yml optimized for deployment on platforms like Easypanel, Coolify, or any Docker-based environment.
This project is licensed under the MIT License.