How to run - slawektychy/iOS-Developer-task GitHub Wiki

You need to build both projects in this solution. First I propose ‘self-hosted service’, next ‘WinForm UI’.

Customers_self-hosted_service

On this stage you can decide which method of data storage you want to use. You can chose between XML File or MS SQL Database.

XML file storage If you decide to use XML file, please type ‘XML_DATA’ compilation symbol in the 'Build' section of project properties. File will be created automatically during first run.

MS SQL Database In this case, you should type ‘SQL_DATA’ compilation symbol (the same way as above). You also need to have the prepared database beforehand (the script is available within the package, the database backup is avaible also). In project properties settings, enter correct connection string.

Service endpoint You can also change address and port number where service endpoint runs. By default it is http://localhost:8080/. To change it, please go to properties of project. Then select the section ‘Settings’ and enter what you need.

Customers_WinForm_UI

If you did not change the address of the self-hosted service, you do not need additional settings to compile it. But if the service is running on a different address or port, you need to configure properly 'CustomersService' in Service References of project.