Skip to main content

Posts

Showing posts from December, 2016

Starting Server side Swift : Kitura

Kitura is a new package based web framework for Swift 3.0 by IBM. As Swift is a compiled language, your Kitura application compiles to a binary that can either act as its own webserver (by default, on port 8090) or as a FastGCI server for use with Nginx or Apache.         Features URL routing (GET, POST, PUT, DELETE) URL parameters Static file serving FastCGI support SSL/TLS support JSON parsing Pluggable middleware Starting first project To create executable package, create and switch to a directory. For  example I have created a directory with name ‘ Todoapp ’ and moved in. Now in the terminal,  $ swift package init will create folder structure for Kitura as shown Todoapp ├── Package.swift ├── Sources │   └── main.swift └── Tests Tip : In case swift file ~/Sources/Todoapp.swift created then rename to ~/Sources/main.swift. In the  Package.swift  add  ‘dependencies’. /***** Package.swift ******/ import PackageDescription let package = Package( nam

SVN configuration in MAC Android Studio

To setup svn and checkout repository in Android Studio 2.2.2 for Mac , we have to follow simple few steps .   Step 1: Go to Android Studio Preferences  >  Version Control > Subversions Select checkbox for command line client Now, type ` svn ` in the box. click on ' Apply ' and ' Save ' Step 2: From the top menu, VCS > Checkout from Version Control Paste SVN path in the under repository path after hitting ‘+’ button. Then you can see you repository listed for checkout.   If you expand the newly added repository, can see all the folders. Click on parent folder and click ' Checkout ' to your work space.