I am currently acquiring the basics for Swift Vapor development. I found the e-book SWIFT FOR SERVER SIDE DEVELOPMENT WITH VAPOR which seems to be the only doc available of this type and which I am reading through, trying all the examples (labs).
The fact is that every line of the labs is a struggle. Main reasons:
many invlaid indications like e.g. DotEnv package url or command vapor run migrate
not Xcode users oriented (you have to find the tricks by yourself)
no repository of the examples and impossible to copy paste a snippet without two lines of copyrights...
Now I am facing a major inconvenient as the running destination has disappeared from the toolbar and I cannot run the app anymore :
I started it all over from a new package and followed the same steps.
And it seems to be related to the Validation package. In the book it is advised to add a dependency and update the executableTarget with an external package. But it seems that there is already a built-in validation package in Vapor and when I removed the dependency importation the running target came back !
And the import Validation appears to be not required.
Well I am happy to have solved the issue but it seems to me an expensive learning process !
Maybe. Allthough it is marked : "First edition published in 2025" !
Author : Don Liatt (L_AI_tt ?) The advantage : it is unexpensive (only a couple of dollars). A pity there is nothing better to learn this nice framework