Web API for Math Exercise, built on ASP.NET Core.
To install this Web API to your own server, please follow the steps below.
You can clone this repository or download it.
You need setup your own database (SQL Server based), and run sql under folder 'src':
- init.sql
The appsettings.json has been removed because it defines the connection strings to the database. This file is manadatory to make the API works.
An example file look like following:
{
"ConnectionStrings": {
"DefaultConnection": "Data Source=XXX;Initial Catalog=XXX;Persist Security Info=True;User ID=XXX;Password=XXX;",
"DebugConnection": "Server=XXX;Database=XXX;Integrated Security=SSPI;MultipleActiveResultSets=true"
},
"Logging": {
"IncludeScopes": false,
"LogLevel": {
"Default": "Debug",
"System": "Information",
"Microsoft": "Information"
}
}
}
Deploy this Web API to IIS or other server.
Though I using Visual Studio 2017, the project can be processed by any IDE which supports ASP.NET Core.
This unit test project also included. You can run the unit test to ensure the code run successfully.
Alva Chien (Hongjun Qian) | 钱红俊
A programmer, and a certificated Advanced Photographer.
Contact me:
- Via mail: alvachien@163.com. Or,
- Check my flickr. Or,
- Visit my website
MIT