Self-Hosting
Before you begin, clone or download the OpenCaptcha repository. Afterwards, choose one of the options below to host OpenCaptcha.
Option 1: Using Docker (recommended for self-hosting)
Requirements
- Docker
- Windows Operating System
How to Run
- Switch Docker to use Windows containers (see Docker docs).
- From the root folder of the project, run the following commands:
docker build -t opencaptcha -f ./src/Captcha.WebApi/Dockerfile .
docker run -it -p 5280:8080 opencaptcha - The API can be accessed at http://localhost:5280.
Option 2: Using Visual Studio (recommended for development purposes)
Requirements
- Visual Studio 2022
- With ASP.NET and web development installed from the Visual Studio Installer
- .NET 8 SDK
- Windows Operating System
How to Run
- Open the solution in Visual Studio 2022.
- Build and launch the Captcha.WebApi project.
- The API can be accessed at https://localhost:5280.