KtTest is a test management software to create and conduct tests online. This repository only contains a web API.
Features:
- Question bank
- Test templates
- Multiple types of questions
- Group management
- Question categories
- .NET 6.0
- MS SQL Server
- Add missing configuration settings. Use the
user secrets
tool or editappsettings.json/appsettings.Development.json
files.
Missing configuration settings:
{
"ConnectionStrings": {
"DefaultConnection": <your connection string>
},
"Jwt": {
"Symmetric": {
"Key": <your secret key>
},
"ValidIssuer": "http://localhost:5000",
"ValidAudience": "http://localhost:5000"
}
}
- Create a database.
- Run commands:
cd KtTest/KtTest
dotnet build
dotnet ef database update --context AppDbContext
dotnet run
- Generate a sql script using
dotnet ef
cli tool.
PS:
dotnet ef migrations script --context AppDbContext | out-file ./script.sql
- Create a database and run the generated script.
- Change
ConnectionStrings.DefaultConnection
in KtTest.IntegrationTests'user secrets
.