Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 927 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 927 Bytes

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 😊