{"id":19886076,"url":"https://github.com/rishabkumar7/azure-qr-code","last_synced_at":"2025-05-02T16:31:50.064Z","repository":{"id":216370987,"uuid":"728494241","full_name":"rishabkumar7/azure-qr-code","owner":"rishabkumar7","description":"Serverless Azure Function that generates QR codes for provided URLs and stores them in Azure Blob Storage.","archived":false,"fork":false,"pushed_at":"2024-03-16T03:30:53.000Z","size":705,"stargazers_count":5,"open_issues_count":1,"forks_count":27,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-07T03:34:46.335Z","etag":null,"topics":["azure-functions","nextjs","node","nodejs","serverless"],"latest_commit_sha":null,"homepage":"https://url-qr-code.azurewebsites.net","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rishabkumar7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-07T03:58:11.000Z","updated_at":"2024-09-17T00:19:14.000Z","dependencies_parsed_at":"2024-01-17T17:46:29.712Z","dependency_job_id":"e7094438-53e7-4c4e-a6b7-6b3746b234b6","html_url":"https://github.com/rishabkumar7/azure-qr-code","commit_stats":null,"previous_names":["rishabkumar7/azure-qr-code"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabkumar7%2Fazure-qr-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabkumar7%2Fazure-qr-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabkumar7%2Fazure-qr-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabkumar7%2Fazure-qr-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rishabkumar7","download_url":"https://codeload.github.com/rishabkumar7/azure-qr-code/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252071864,"owners_count":21690103,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure-functions","nextjs","node","nodejs","serverless"],"created_at":"2024-11-12T17:36:12.778Z","updated_at":"2025-05-02T16:31:48.914Z","avatar_url":"https://github.com/rishabkumar7.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure QR Code Generator\n\n[![Build and deploy](https://github.com/rishabkumar7/azure-qr-code/actions/workflows/main_qr-code-generator7.yml/badge.svg)](https://github.com/rishabkumar7/azure-qr-code/actions/workflows/main_qr-code-generator7.yml)\n\nThis repository contains the code for serverless Azure Function that generates QR codes for provided URLs and stores them in Azure Blob Storage. The function is written in JavaScript and can be triggered via HTTP requests.\n\n## Demo\n\nSend a `GET` request to the Azure Function `https://azure-qr-code.azurewebsites.net/api/GenerateQRCode` with `url` as parameter.\n\n`curl` example:\n\n``` bash\ncurl -X GET https://azure-qr-code.azurewebsites.net/api/GenerateQRCode -H \"Content-Type: application/json\" -d '{\"url\":\"https://www.example.com\"}'\n```\n\nPostman example:\n![Azure QR Code Generator GIF Postman Example](./assets/azure-qr-code.gif)\n\n## Architecture\n\n![Azure QR Code Generator Architecture](./assets/azure-qr-code-architecture.png)\n\n## Features\n\n-   **Serverless**: Leverages Azure Functions for minimal infrastructure management.\n-   **QR Code Generation**: Dynamically creates QR codes for any given URL.\n-   **Azure Blob Storage**: Stores the generated QR codes in the cloud for easy access and management.\n\n## Prerequisites\n\n-   [Node.js](https://nodejs.org/)\n-   [Azure Functions Core Tools](https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=linux%2Cisolated-process%2Cnode-v4%2Cpython-v2%2Chttp-trigger%2Ccontainer-apps\u0026pivots=programming-language-csharp)\n-   Azure CLI\n-   An Azure account and an Azure Blob Storage account.\n\n## Getting Started\n\n### 1. Clone the Repository\n\n``` bash\ngit clone https://github.com/rishabkumar7//azure-qr-code.git\ncd azure-qr-code/qrCodeGenerator\n```\n\n### 2. Install Dependencies\n\n```bash\nnpm install\n```\n\n### 3. Local Configuration\n\nSet up your `local.settings.json` file with the necessary configuration values:\n\n```json\n{\n    \"IsEncrypted\": false,\n    \"Values\": {\n        \"AzureWebJobsStorage\": \"\",\n        \"FUNCTIONS_WORKER_RUNTIME\": \"node\",\n\t      \"STORAGE_CONNECTION_STRING\":\"\u003cYOUR_STORAGE_CONNECTION_STRING\u003e\"\n    }\n}\n```\n\n### 4. Running Locally\n\nTo start the function app locally, make sure you have Azure Functions Core Tools installed, then run:\n\n```bash\nfunc start\n```\n\n### 5. Deploy to Azure\n\nDeploy your function app to Azure using the following command:\n\n```bash\nfunc azure functionapp publish \u003cYOUR_FUNCTION_APP_NAME\u003e\n```\n\n## Usage\n\nSend a `GET` request to your function's endpoint with a JSON payload containing the URL:\n\n`curl -X GET https://\u003cYOUR_FUNCTION_URL\u003e/api/GenerateQRCode -H \"Content-Type: application/json\" -d '{\"url\":\"https://www.example.com\"}'`\n\n## Author\n\n- Twitter: [@rishabincloud](https://twitter.com/rishabincloud)\n- GitHub: [@rishabkumar7](https://github.com/rishabkumar7)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishabkumar7%2Fazure-qr-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frishabkumar7%2Fazure-qr-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishabkumar7%2Fazure-qr-code/lists"}