The tool provides step-by-step guidance to the political parties in the improvement of key organizational capacities and leads them towards becoming more effective and sustainable institutions.
ASP.NET
Core 2.2- Microsoft SQL Server 2014
- Bootstrap 4.3.1
- JQuery 3.3.
- JQuery UI 1.2.3
- Metronic
In order to run the project you need to follow the given instructions:
You can use Visual Studio (recommended) or Visual Studio Code for IDE,
Visual Studio:
- Download Visual Studio 2019 Community Edition with
ASP.NET
and web developement workload - .NET Core SDK 2.2 or later
Visual Studio Code:
The project uses Microsoft SQL Server with Entity Framework Core library. You can download Develoepr edition from this link.
Don't forget to downlaod SQL Management Studio
The tool is divided into four parts:
Core
- Database context with entities and entity configurations, Migration folderApplication
- business logic and functionalityResources
- Resource files (with .resx extension) that contains all the texts.sharedResource.resx
is a primary resource file.Web
- ASP.NET Core project
You can find appsettings.json
in Web
, where it is possible to set a connection string by modifying a value for PlanningDatabase
"ConnectionStrings": {
"PlanningDatabase": "Server=YOUR_SERVER;Database=strat_planning_db;Trusted_Connection=True;"
}
The tool automatically creates database and applies migrations at startup. If this does not cause any exception, database is seeded with default data.
As mentioned, migrations and database seeder are located inside Core
.
You can apply migrations from Visual Studio using Package Manager Console that can be found by Tools -> Nuget Package Manager -> Nuget Package Console
.
Set Default Project to Core and run a command Update-Database
.
In a case of using Visual Studio Code, use can perform the same operation using .Net Core CLI.
You can find a seeder inside Context/DatabaseInitializer.cs
where seeders are put inside different methods according to data type.
In order to modify questions for a step, you need to look up for certain methods inside the DatabaseInitializer
class and modify an array of block in accordance to your wishes.
Default use credentials:
Email: admin@sp.com
Password: admin