Please set the database path in the app.config connection string in WinService and Tests\IntegrationTests projects to an appropriate path.
Tests/IntegrationTests project contains a test called CreateDb which creates the database and adds test data to it.
The API can be accessed on the localhost:8080 port after starting the WinService process. It doesn't need IIS.
- Open the SLN in Visual Studio
- Set the Api project as the startup project for the solution
- Start the project with F5 (debug run)
- Requests on localhost:8080 will be answered
- Execute StartProcess.bat in main project folder (The command window can be closed, the server will still work)
- Requests on localhost:8080 will be answered
- To stop the server execute the StopProcess.bat in main project folder
- Build the solution
- Start Developer Command prompt as administrator
- Navigate to the main folder of the Mossad solution
- Execute installService.bat
- Start Services.msc
- Start Mossad.HR.API service
The BE solution uses Nancy FX a mature, well supported, lightweight framework for WEB API. See https://auth0.com/blog/meet-nancy-a-lightweight-web-framework-for-dot-net/ https://www.ben-morris.com/simplifying-net-rest-api-development-nancy-self-hosting-and-asp-net-core/
The solution is multi layered, so it is easy to convert ASP.NET WEB API if necessary.
This solution is based on my earlier hobby work.
- The database is not optimized for speed. More indexes should be defined.
- Recruiter password handling is not implemented
- Recruiter security token handling is not implemented
Original task description moved to Doc folder