{"id":20616810,"url":"https://github.com/virgil993/qr-generator","last_synced_at":"2026-04-12T14:45:33.177Z","repository":{"id":241870689,"uuid":"804802265","full_name":"Virgil993/qr-generator","owner":"Virgil993","description":"An open source qr generator application with monitoring and google auth","archived":false,"fork":false,"pushed_at":"2024-11-27T12:12:39.000Z","size":310,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T04:32:45.659Z","etag":null,"topics":["express","generator","genezio","nodejs","qrcode","react","serverless","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Virgil993.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-05-23T09:49:01.000Z","updated_at":"2024-11-27T12:12:42.000Z","dependencies_parsed_at":"2024-05-30T12:30:35.898Z","dependency_job_id":"29611320-702d-4312-b16a-a824c8925b27","html_url":"https://github.com/Virgil993/qr-generator","commit_stats":null,"previous_names":["virgil993/qr-generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Virgil993%2Fqr-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Virgil993%2Fqr-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Virgil993%2Fqr-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Virgil993%2Fqr-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Virgil993","download_url":"https://codeload.github.com/Virgil993/qr-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242269454,"owners_count":20100100,"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":["express","generator","genezio","nodejs","qrcode","react","serverless","typescript"],"created_at":"2024-11-16T11:20:30.480Z","updated_at":"2025-12-31T00:56:23.557Z","avatar_url":"https://github.com/Virgil993.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QR Code Generator\n\nThis is a QR Code Generator app built with Genezio and React. This app allows users to generate QR codes for their URLs as well as track their QR codes.\n\n## Prerequisites\n\n- ✅ [NodeJs](https://nodejs.org) \u003e= 18.0.0\n- ✅ [npm](https://www.npmjs.com/)\n- ✅ [genezio](https://genezio.com/)\n\n## Run the app\n\n### Clone the repository\n\n```bash\ngit clone https://github.com/Virgil993/qr-generator.git\n\ncd qr-generator\n```\n\n### Postgres\n\n1. Host a Postgres Database. Follow this [tutorial](https://genezio.com/docs/features/databases) to get a free tier postgres database.\n2. If you created a postgres database using the Genezio dashboard then you can obtain the connection URL by going to the [databases dashboard](https://app.genez.io/databases/) and clicking on the `connect` button associated with your database.\n3. Create a `server/.env` file and add the following environment variables:\n\n```env\nPOSTGRES_URL=\u003cyour-postgres-url\u003e\n```\n\n### Enable Authentification\n\nThis project uses the authentification service provided by Genezio. To enable it on this project run this command in the root of the project.\n\n```\ngenezio deploy --env server/.env\n```\n\nAfter you succesfully ran the command, you can go in the [Genezio dashboard](https://app.genez.io/dashboard) and click on the project you just deployed.\n\nClick on the authentification button and choose PostgreSQL. Now you can select to create a new Postgres database or use an existing one, click enable and now you should have a postgres database up and running as well as your authentification service ready to be used.\n\nAfter you create your database, you should be able to see the two providers:\n\n- Email\n- Google\n\nClick on the edit button next to the Email provider and enable it. And that's it, the Email Auth service is now enabled on this project.\n\nFollow this tutorial[https://genezio.com/docs/tutorials/create-react-app-genezio-google-oauth/] to learn how to enable the Google OAUTH provider.\n\nAfter aquiring the `Google ID` and the `Google Secret` of your application, click on the edit button next to the Google provider and enable it.\n\nTo use the Auth Service in your frontend, go to the `.env` file in the `client` directory and add the following environment variables:\n\n```env\nVITE_AUTH_TOKEN = \"\u003ctoken\u003e\"\nVITE_AUTH_REGION=\"\u003cregion\u003e\"\nVITE_GOOGLE_CLIENT_ID=\"\u003cclient_id\u003e\"\n```\n\nBoth the token and the region can be found in the [Genezio dashboard](https://app.genez.io/dashboard) under the authentification service on the project you just deployed.\n\n### Enable Tracking\n\nThis app allows you to track the number of times a QR code is scanned. To enable tracking in the frontend, go the the [Genezio dashboard](https://app.genez.io/dashboard) and click on the project you just deployed. Go to test interface and click on the `trackCode` function to view the webhook url. Then, simply copy the url and add it to the `.env` file in the `client` directory.\n\n```env\nVITE_TRACKING_URL = \"\u003cwebhook-url\u003e\"\n```\n\n### Test the app\n\nTo test the app locally you can run the following command:\n\n```\ngenezio local\n```\n\nThis command will start both the backend and the frontend and you should be able to test the features of your app before deploying to production.\n\n### Deploy the app\n\n```bash\ngenezio deploy\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirgil993%2Fqr-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvirgil993%2Fqr-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirgil993%2Fqr-generator/lists"}