The service behind the OpenHolidays API. Build with .NET 8.
The following instructions show you how to set up a development environment on your computer.
OpenHolidaysApi.sln
in Visual Studio 2022.OpenHolidaysApi.CLI
.appsettings.json
file and name it appsettings.Development.json
.Exchange the content with the following JSON document and adjust the values to your needs. This configures the root folder for the csv data sources (the src
folder in your local OpenHolidaysApi.Data repository) and the database connection.
"Sources": {
"RootFolderName": "c:\\openholidaysapi.data\\src"
},
"Database": {
"Server": "localhost",
"Database": "OpenHolidaysApi",
"Username": "postgres",
"Password": "qwertz"
}
OpenHolidaysApi.CLI
project. OpenHolidaysApi.CLI
project with parameter initdb --import
. This will create and populate the PostgreSQL database.OpenHolidaysApi.WebService
. appsettings.json
file and name it appsettings.Development.json
.Exchange the content with the following JSON document and adjust the values to your needs. This configures the database connection.
"Database": {
"Server": "localhost",
"Database": "OpenHolidaysApi",
"Username": "postgres",
"Password": "qwertz"
}
OpenHolidaysApi.WebService
project.OpenHolidaysApi.WebService
project and play with the Swagger UI.Yes, that would be much appreciated. The best way to help is to post a response via the Issue Tracker and/or submit a Pull Request.