{"id":18681591,"url":"https://github.com/alicw/recaptchav3-demo","last_synced_at":"2026-02-26T08:03:54.708Z","repository":{"id":253318310,"uuid":"841067362","full_name":"AliCW/reCAPTCHAv3-demo","owner":"AliCW","description":"reCAPTCHA v3 demonstration","archived":false,"fork":false,"pushed_at":"2024-08-27T21:58:23.000Z","size":24970,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-20T23:06:28.482Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AliCW.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-08-11T14:45:27.000Z","updated_at":"2024-08-27T21:58:26.000Z","dependencies_parsed_at":"2024-12-27T23:00:54.578Z","dependency_job_id":null,"html_url":"https://github.com/AliCW/reCAPTCHAv3-demo","commit_stats":{"total_commits":12,"total_committers":2,"mean_commits":6.0,"dds":0.25,"last_synced_commit":"80bc8606a01aaa82751c9731408176d3bbfa5893"},"previous_names":["alicw/recaptchav3-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AliCW/reCAPTCHAv3-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliCW%2FreCAPTCHAv3-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliCW%2FreCAPTCHAv3-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliCW%2FreCAPTCHAv3-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliCW%2FreCAPTCHAv3-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AliCW","download_url":"https://codeload.github.com/AliCW/reCAPTCHAv3-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliCW%2FreCAPTCHAv3-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29853058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T22:37:40.667Z","status":"online","status_checked_at":"2026-02-26T02:00:06.774Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-07T10:08:06.861Z","updated_at":"2026-02-26T08:03:54.674Z","avatar_url":"https://github.com/AliCW.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reCAPTCHAv3-demo\nGoogle reCAPTCHA-v3 demonstration (https://www.google.com/recaptcha/about/) utilising a backend in Django \u0026 frontend with React JS \u0026 webpack (https://webpack.js.org/). Success \u0026 failure messages are passed to the user with a passing score, datestamp and failure message (if applicable).\n\n# Setup\n\nClone the repository:\n\n    git clone https://github.com/AliCW/reCAPTCHAv3-demo.git\n\nRegister a new site with reCAPTCHA \u0026 select version 3 (https://www.google.com/recaptcha/admin/create) - for the purposes of this demonstration, the only domain added is `localhost`. Be sure to make note of the `Site Key` \u0026 `Secret Key`.\n\n## Backend\n\nInstall sqlite3:\n\n    sudo apt-get install sqlite3 libsqlite3-dev\n\nDjango utilises its own `SECRET_KEY` that needs to be generated \u0026 obscured; The repo uses dotenv to obscure the key. Install dotenv by navigating to `\\be\\reCAPTCHAv3\\` and type:\n\n    python3 pip install python-dotenv\n\nCreate a file called `.env` in ` \\reCAPTCHAv3\\ ` (not ` \\reCAPTCHAv3\\reCAPTCHAv3\\ `) and add the below:\n\n    SECRET_KEY = ''\n\nTo generate a new key, type the below the enter the admin shell:\n\n    django-admin shell\n\nFollowed by the below to get a new key; Import the ` get_random_secret_key ` function with the below:\n\n    from django.core.management.utils import get_random_secret_key\n\nThen run the function to get the key itself:\n\n    get_random_secret_key()\n\nCopy the key into your dotenv file as your `SECRET_KEY` string:\n\n    SECRET_KEY = 'this_is_my_key'\n\n### Insert your google api secret key into the database with the below commands:\n\nSync the database to add a table for your api key:\n\n    python3 manage.py migrate --run-syncdb\n\nStart the server shell:\n\n    python3 manage.py shell\n\nImport the insertion function for the key:\n\n    from test_demo.models import SendKey\n\nEnvoke the insertion function with your api key:\n\n    key = SendKey(key='api_secret_key_here')\n\nSave the api key to the database:\n\n    key.save()\n\nCheck if it has saved successfully, assign the key to a variable:\n\n    instance = SendKey.objects.get(id=1)\n\nPrint it:\n\n    print(instance)\n\nStart the server with the below:\n\n    python3 manage.py runserver\n\n## Frontend\n\nYou need to add your google api site key to ` ./fe/src/components/Main.jsx `: \n\n    \u003cGoogleReCaptchaProvider reCaptchaKey=\"\u003capi_site_key_here\u003e\"\u003e\n        {load \u0026\u0026 \u003cResult /\u003e}\n    \u003c/GoogleReCaptchaProvider\u003e\n\nInstall the required packages by navigating to `/fe` and running:\n\n    npm init\n\nTo start the frontend, run:\n\n    npm start\n\nThe default address is set to `localhost:3000`, this should now work in your browser.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falicw%2Frecaptchav3-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falicw%2Frecaptchav3-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falicw%2Frecaptchav3-demo/lists"}