Moriarty is an experimental text-based game, guessing murderer of fictional crime scene. Content creation and game playing are supported LLM, thorugh Semantic Kernel.
- Set OpenAI API key to
dotnet user-secrets
as below.
$ dotnet user-secrets init --project Moriarty.Web
$ dotnet user-secrets set --project Moriarty.Web "OpenAI:ApiKey" "<OPENAI_API_KEY>"
- (Optional) Change path of SQLite database file.
$ export ConnectionStrings__DefaultConnection="Data Source=<NEW PATH>"
- Initialize database by
dotnet ef
$ dotnet-ef --project Moriarty.Web database update
- Build and run
dotnet run --project Moriarty.Web
- Check the
http://localhost:5229
by your preferred web browser.