Choosing additional services

Once you have selected one of the presets, the application generator will prompt you to select which additional services you want to include:

Generate Boilerplate for Services:

  • [ ] Cloudant / CouchDB
  • [ ] Redis
  • [ ] MongoD
  • [ ] PostgreSQL
  • [ ] ElephantSQL
  • [ ] Object Storage
  • [ ] AppID
  • [ ] Auto-scaling
  • [ ] Watson Conversation
  • [ ] Alert Notifications
  • [ ] Push Notification

Skip all of these additional services for the newWorld application. Also, select default options for the rest of the prompts.

Now, KAG is ready to create the project for you. The output looks like the following:

 create .swiftservergenerator-project
... [deleted]

create Jenkinsfile
Apple Swift version 4.1.2 (swiftlang-902.0.54 clang-902.0.39.2)
Target: x86_64-apple-darwin17.4.0
Fetching https://github.com/IBM-Swift/Kitura.git
... [deleted]

Compile Swift Module 'newWorld' (1 sources)
Linking ./.build/x86_64-apple-macosx10.10/debug/newWorld
swift build command completed
generated: ./newWorld.xcodeproj
generate .xcodeproj command completed
Next steps:Change directory to your app
$ cd /Users/fyeung1/Downloads/Packt/ch3/kitura/newWorld
Run your app
$ .build/debug/newWorld

As you can see, KAG will create a basic boilerplate project similar to that generated by kitura init. However, KAG allows you to add more features to the starting project. You'll find it very useful to start a new project quickly.