An API and the infrastructure of this API have been prepared for the Vakıfbank - Patika FullStack bootcamp. This project is a digital voting system. Candidates and users can be created. Votes can be cast with user information. The results can be brought in once the voting process is completed.
After cloning the project, open the solution with Visual Studio. Run the project via IIS Express. Enter the required values into the input section with Swagger.
To add migration: In VkpApi folder
Packager Manager Console >
Add-Migration MigrationName -Project Vkp.Data
To update:
PowerShell >
dotnet ef database update --verbose --project Vkp.Data --startup-project Vkp.Api
To update database:
update-database -Project Vkp.Data
Ex Register:
{
"TCKN": "12345678901",
"Password": "myPassword"
}
Ex: Candidate:
{
"name": "Candidate1",
"party": "Party1"
}
- Microsoft.AspNetCore.OpenApi
- Microsoft.EntityFrameworkCore
- Microsoft.EntityFrameworkCore.Design
- Microsoft.EntityFrameworkCore.SqlServer
- Microsoft.EntityFrameworkCore.Tools
- Swashbuckle.AspNetCore