/lottery-jug-swift

Lottery application for Jug Montpellier in Swift using Vapor

Primary LanguageSwiftMIT LicenseMIT

Lottery Jug Swift

Swift Vapor Build Status

Lottery application for Jug Montpellier in Swift using Vapor framework.

To dev (Mac OS)

To generate a Xcode project :

  • Install Xcode
  • Install Vapor
  • Execute vapor xcode
  • Open the generated project

To build under Linux

docker run --rm -ti -v $(pwd):/vapor asensei/vapor:latest vapor build

To run

docker run --rm -ti -p 8080:8080 -e ORGA_ID='XXXXX' -e TOKEN='XXXXXXX' -v $(pwd):/vapor asensei/vapor:latest vapor run

To get winners

Go to http://localhost:8080/winners?nb=X where X is the number of winners you want 😊