https://github.com/putuwaw/qr-generator
QR Code Generator using FastAPI and Vercel
https://github.com/putuwaw/qr-generator
fastapi qrcode vercel
Last synced: 4 months ago
JSON representation
QR Code Generator using FastAPI and Vercel
- Host: GitHub
- URL: https://github.com/putuwaw/qr-generator
- Owner: putuwaw
- License: mit
- Created: 2023-08-06T12:16:56.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-03T23:12:32.000Z (about 2 years ago)
- Last Synced: 2024-05-04T00:24:06.001Z (about 2 years ago)
- Topics: fastapi, qrcode, vercel
- Language: Python
- Homepage: https://qr-generator-putuwaw.vercel.app
- Size: 50.8 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# qr-generator



QR Generator is a simple, free, and open source QR code generator for your `README` file. With this app, you can generate a QR code directly from your `README` file. This app is build using [python-qrcode](https://github.com/lincolnloop/python-qrcode) with [FastAPI](https://fastapi.tiangolo.com/) and deployed on [Vercel](https://vercel.com/).
## Features 💡
Using QR Generator, you can:
- [x] Generate QR code with custom data.
- [x] Costumize the QR code style, background color, and fill color.
## Usage 👨💻
Create your own QR code by modifying the `DATA` and `STYLE` in the URL below. You also can change the background color and fill color by changing the `BG_COLOR` and `FILL_COLOR` respectively. Curently there are 2 styles available: `square` and `circle`.
```url
https://qr-generator-putuwaw.vercel.app/api?data=&style=bg_color=<BG_COLOR>&fill_color=<FILL_COLOR>
```
## Examples 🚀
Default style (transparent background and black fill color)
```
[](https://qr-generator-putuwaw.vercel.app/api?data=https%3A%2F%2Fgithub.com%2Fputuwaw%2Fqr-generator&style=square)
```
[](https://qr-generator-putuwaw.vercel.app/api?data=https%3A%2F%2Fgithub.com%2Fputuwaw%2Fqr-generator&style=square)
Circle shape with blue background and white fill color
```
[](https://qr-generator-putuwaw.vercel.app/api?data=https%3A%2F%2Fgithub.com%2Fputuwaw%2Fqr-generator&style=circle&bg_color=blue&fill_color=white)
```
[](https://qr-generator-putuwaw.vercel.app/api?data=https%3A%2F%2Fgithub.com%2Fputuwaw%2Fqr-generator&style=circle&bg_color=blue&fill_color=white)
> [!NOTE]
> If you don't like to change the URL manually, you can use the [QR Generator](https://qr-generator-putuwaw.vercel.app/) web app.
## Prerequisites 📋
- Python 3.9 or higher
- Docker 24.0.4 or higher (optional)
## Installation 🛠
- Clone the repository:
```bash
git clone https://github.com/putuwaw/qr-generator.git
```
- Create a virtual environment and activate it:
```bash
python3.9 -m venv venv
source venv/bin/activate
```
- Install the dependencies:
```bash
make install
```
- Run the application:
```bash
make run
```
- You can also run the application using Docker:
```bash
docker pull putuwaw/qr-generator
```
- Run the application on port `8000`:
```bash
docker run -p 8000:8000 putuwaw/qr-generator
```
## Contributing 🤝
Contributions are welcome! Please read the [contributing guidelines](CONTRIBUTING.md) first.
## License 📝
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.