You've made it! We now need to compile the service and start it. To do that, run the following commands:
- Run swift build .
- Run ./.build/debug/Run.
If you run into any problems after running swift build, you should check the following:
- Did you make any little spelling mistakes? As you know, Swift doesn't forgive those.
- Is Swift able to pull all the correct dependencies?
Otherwise, if you run the second command and the service quits very quickly, be sure to check the following:
- The credentials are correctly in the environment. See in the preceding sections for how to do that.
- The database server is reachable and configured.
If you have any doubts about working through this chapter, you might want to check out the code on GitHub and compare it.
Excellent! We have written, compiled, and started our first service for the example case! Now, let...