Skip to content

gelemias/server-side

Repository files navigation

logo

Server side example with Vapor 2, Swift 3.1 and Heroku


Installation

Xcode (Swift)

Install Xcode 8 from the Mac App Store. After Xcode 8 has been downloaded, you must open it to finish the installation. This may take a while.

Double check the installation was successful by opening Terminal and running:

  $ eval "$(curl -sL check.vapor.sh)"
Vapor

You will need homebrew. The toolbox includes all of Vapor's dependencies as well as a handy CLI tool for creating new projects.

$ brew tap vapor/homebrew-tap
$ brew update
$ brew install vapo
Heroku

Finally install Heroku

$ brew install heroku/brew/heroku

Examples

https://quiet-sea-57405.herokuapp.com/

These are some examples listed in this project

  1. Simple GET https://quiet-sea-57405.herokuapp.com/greet
  2. Dynamic GET https://quiet-sea-57405.herokuapp.com/greet?name=Richard
  3. POST with parameter (name)

About

Server side example app using Swift

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages