{"id":22165453,"url":"https://github.com/cypher-o/qr_code_generator","last_synced_at":"2026-04-29T08:04:06.787Z","repository":{"id":260365443,"uuid":"881094371","full_name":"Cypher-O/qr_code_generator","owner":"Cypher-O","description":"An API that generates QR codes for given URLs or text. Users can input data and receive a downloadable QR code image","archived":false,"fork":false,"pushed_at":"2024-11-02T04:45:04.000Z","size":1067,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T16:13:55.759Z","etag":null,"topics":["django","python","qr-code-generator"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Cypher-O.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":"2024-10-30T22:42:21.000Z","updated_at":"2024-11-17T01:51:42.000Z","dependencies_parsed_at":"2025-01-29T21:44:50.851Z","dependency_job_id":null,"html_url":"https://github.com/Cypher-O/qr_code_generator","commit_stats":null,"previous_names":["cypher-o/qr_code_generator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Cypher-O/qr_code_generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cypher-O%2Fqr_code_generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cypher-O%2Fqr_code_generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cypher-O%2Fqr_code_generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cypher-O%2Fqr_code_generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cypher-O","download_url":"https://codeload.github.com/Cypher-O/qr_code_generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cypher-O%2Fqr_code_generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32416147,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["django","python","qr-code-generator"],"created_at":"2024-12-02T05:14:56.079Z","updated_at":"2026-04-29T08:04:06.743Z","avatar_url":"https://github.com/Cypher-O.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QR Code Generator\n\nA full-featured QR Code generator built with Django and Django REST Framework. This application provides both a web interface and API endpoints for generating QR codes from URLs or text.\n\n## Features\n\n- 🌐 Web interface for generating QR codes\n- 🔄 RESTful API endpoints\n- 📥 Downloadable QR codes\n- 🎨 Clean, responsive UI\n- 💾 Automatic QR code storage\n- 🔗 URL validation\n- 📱 Mobile-friendly design\n\n## Tech Stack\n\n- Python 3.11+\n- Django 5.1.2\n- Django REST Framework\n- qrcode library\n- Pillow (Python Imaging Library)\n\n## Installation\n\n1. Clone the repository: \u0026 navigate to the project directory\n\n   ```sh\n    git clone https://github.com/Cypher-O/qr_code_generator.git   \n   ```\n\n   ```sh\n    cd qr_code_generator\n   ```\n\n2. Create and activate a virtual environment:\n\n   ```sh\n    python -m venv venv\n   ```\n\n   ```sh\n    source venv/bin/activate\n   ```\n\n3. Install dependencies:\n\n   ```sh\n    pip install -r requirements.txt\n   ```\n\n4. Run migrations:\n\n   ```sh\n   python manage.py makemigrations\n   ```\n\n   ```sh\n   python manage.py migrate\n   ```\n\n5. Generate Static files:\n\n   ```sh\n    python manage.py collectstatic\n   ```\n\n6. Run the server:\n\n   ```sh\n    python manage.py runserver\n   ```\n\n## API Usage\n\nGenerate QR Code\n\nEndpoint: POST /api/qr/generate\n\n- Request Format:\n  \n    ```\n    {\n    \"original_url\": \"https://example.com\"\n    }\n    ```\n\n- Success Response\n  \n  ```\n  {\n    \"code\": 0,\n    \"status\": \"success\",\n    \"message\": \"QR Code generated successfully\",\n    \"data\": {\n        \"original_url\": \"https://example.com\",\n        \"qr_code_image\": \"/media/qr_codes/qrcode_example.com.png\"\n    }\n   }\n   ```\n\n## Web Interface Usage\n\n- Navigate to the homepage\n- Enter a URL in the input field\n- Click \"Generate QR Code\"\n- View and download the generated QR code\n\n## Project Structure\n\n```\nqr_code_generator/\n├── apps/\n│   └── generator/\n│       ├── migrations/\n|       ├── utils/\n│           ├── __init__.py\n│           └── api_response.py\n|       ├── templates/\n│           └── generator/\n│           └── qr_code_generator.html\n|       ├── static/\n│           └── css/\n│           └── styles.css\n│       ├── __init__.py\n│       ├── admin.py\n│       ├── apps.py\n│       ├── models.py\n│       ├── serializers.py\n│       ├── urls.py\n│       └── views.py\n├── media/\n│   └── qr_codes/\n├── static/\n├── manage.py\n├── requirements.txt\n└── README.md\n```\n\n## Configuration\n\nKey settings in `settings.py`:\n\n```\n# Application setup\nINSTALLED_APPS = [\n    .......\n    'django.contrib.staticfiles',\n    'apps.generator',  \n    'rest_framework',\n]\n```\n\n```\n# Static Files Configuration\nSTATIC_URL = '/staticfiles/'\nSTATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles_collected')\nSTATICFILES_DIRS = [\n    os.path.join(BASE_DIR, 'apps/generator/static'),\n]\n```\n\n```\n# Media Files Configuration\nMEDIA_URL = '/media/'\nMEDIA_ROOT = os.path.join(BASE_DIR, 'media')\n```\n\n```\n# Templates Configuration\nTEMPLATES = [\n    {\n        'BACKEND': 'django.template.backends.django.DjangoTemplates',\n        'DIRS': [os.path.join(BASE_DIR, 'templates')],\n        'APP_DIRS': True,\n        'OPTIONS': {\n            'context_processors': [\n                'django.template.context_processors.debug',\n                'django.template.context_processors.request',\n                'django.contrib.auth.context_processors.auth',\n                'django.contrib.messages.context_processors.messages',\n                'django.template.context_processors.static',\n            ],\n        },\n    },\n]\n```\n\n### Static and Media Files Setup\n\nAdd to your main `urls.py`:\n\n```\nfrom django.conf import settings\nfrom django.conf.urls.static import static\n\nurlpatterns = [\n    # ... your url patterns ...\n] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) \\\n  + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)\n```\n\n## Development\n\n1. Create branch for your feature\n\n   ```sh\n   git checkout -b feature/your-feature-name\n   ```\n\n2. Make your changes and commit:\n\n   ```sh\n    git add .\n    git commit -m \"Add your feature description\"\n    ```\n\n3. Push changes and create pull request:\n\n   ```sh\n   git push origin feature/your-feature-name\n   ```\n\n## Testing\n\nRun tests with:\n\n   ```sh\n   python manage.py test\n   ```\n\n## Contributing\n\n- Fork the repository\n- Create your feature branch\n- Commit your changes\n- Push to the branch\n- Create a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\nAuthors\n\nOlumide Awodeji \u003columide.awodeji@hotmail.com\u003e\n\n## Acknowledgments\n\n- qrcode library developers\n- Django and DRF teams\n- Contributors and users\n  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcypher-o%2Fqr_code_generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcypher-o%2Fqr_code_generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcypher-o%2Fqr_code_generator/lists"}