Skip to content

Backend API for the UNCmorfi apps. Written in Swift, using Vapor.

License

Notifications You must be signed in to change notification settings

jorgealegre/UNCmorfiServer

Repository files navigation

Run

To build and run the application:

  1. swift build
  2. .build/debug/Run

Iterative Development

The iterative-dev.sh script is included in the root of the generated Swift project and allows for fast & easy iterations for the developer. Instead of stopping the running Kitura server to see new code changes, while the script is running, it will automatically detect changes in the project's .swift files and recompile the app accordingly.

To use iterative development:

  • For native OS, execute the ./iterative-dev.sh script from the root of the project.
  • With docker, shell into the tools container mentioned above, and run the ./swift-project/iterative-dev.sh script. File system changes are detected using a low-tech infinitely looping poll mechanism, which works in both local OS/filesystem and across host OS->Docker container volume scenarios.