- Clone the repository.
git clone https://github.com/th1nk-er/reCAPTCHA-Enterprise-Demo.git
- Replace your reCAPTCHA key
reCAPTCHA-Web/src/main.ts
app.config.globalProperties.$siteKey = "SITE KEY";
reCAPTCHA-Server/src/main/resources/application.yml
reCAPTCHA:
# visit https://console.cloud.google.com/apis/credentials to get the api key
api-key: "API KEY"
# visit https://console.cloud.google.com/security/recaptcha to get the project id and site key
project-id: " PROJECT ID"
site-key: "SITE KEY"
- Test reCAPTCHA
cd reCAPTCHA-Enterprise-Demo
# Start server
cd reCAPTCHA-Server
mvn package
java -jar target/reCAPTCHA-Server-0.0.1-SNAPSHOT.jar
# Start web
cd reCAPTCHA-Web
pnpm install
pnpm dev