A sample microservice leveraging Dark Patterns Digital's OpenAPI code generators
- /eng - Contains repo-level structures, including:
- .NET auto-code-formatting
- pnpm-msbuild integration
- API Key generation scripts
- Docker tools for running postgres locally
- /schemas - OpenAPI Schema for the One Time Password API
- /Server - .NET Server implementation of the OTP microservice
- /Server.Tests - .NET tests for the OTP Server
Development is orchestrated via msbuild.
Prerequisites:
To run locally, use one of the following options:
-
Using Visual Studio:
- Open
./DarkPatterns.OneTimePassword.sln
. - Set up local configuration (see below)
- Debug or run the
Server
project.
- Open
-
Using the
dotnet
CLI:- Set up local configuration (see below)
- Run the following commands in your terminal:
cd Server dotnet run