A browser-based QR code generator that works entirely on the client side. Generate QR codes from text input and download them as images.
A deployment of this project is available at: client-only-qrcode.github.io
- Generate QR codes from any text input.
- Automatically saves state in URL hash (shareable links).
- Download QR codes as SVG files.
-
Clone the repository:
git clone https://github.com/your-username/client-only-qrcode.git
-
Install dependencies:
pnpm install
-
Start development server:
pnpm dev
-
Open
http://localhost:5173
in your browser. -
Enter text in the input field to generate a QR code.
-
Click the QR code to download it as an SVG file.
pnpm dev
: Start development server.pnpm build
: Create production build.pnpm preview
: Preview production build.pnpm test
: Run tests.pnpm lint
: Run linters.pnpm format
: Format code.
To deploy manually:
- Push changes to the
main
branch. - GitHub Actions will run the CI workflow:
- Runs linting checks
- Runs tests with coverage
- Builds the production bundle
- If CI passes, the deployment workflow will:
- Download the built artifacts
- Deploy to GitHub Pages
- Your updated site will be live within minutes.
Before deploying to GitHub Pages, ensure you set the following environment variables in your GitHub
repository settings (under Settings > Secrets and variables > Actions). These variables are defined
in .env.local.example
:
VITE_FB_APP_ID
: Your Facebook App ID for authentication (if applicable)VITE_PUBLIC_URL
: The base URL for your deployment (e.g.,https://your-username.github.io/repo-name/
)
These variables are used during the build process to configure the application for production.
The deployment will only occur if all CI checks pass.