Vapor (web framework)

From Wikipedia, the free encyclopedia
  (Redirected from Draft:Vapor (Server-side Swift))
Jump to navigation Jump to search
Vapor
Vapor Swift Wordmark Horizontal.png
Developer(s)Tanner Nelson and others
Initial releaseJanuary 18, 2016; 3 years ago (2016-01-18)[1][2]
Stable release
3.3.0[3] / February 28, 2019; 8 months ago (2019-02-28)
Written inSwift
Operating systemmacOS, Ubuntu
PlatformSwiftNIO
TypeWeb framework
LicenseMIT License
Websitevapor.codes

Vapor is an open source web framework written in Swift. It can be used to create RESTful APIs, web apps, and real-time applications using WebSockets. In addition to the core framework, Vapor provides an ORM, a templating language, and packages to facilitate user authentication and authorization.[4]

Vapor's source code is hosted on GitHub and licensed under the MIT License.[5] Vapor has been a part of Swift's Server APIs working group since 2016.[6][7]

History[edit]

Vapor 0.1.0 was released as a proof of concept for Swift on the server a month after Apple open sourced Swift and began Linux platform support on December 3, 2015.[8] Vapor 1.0[9] arrived in September 2016, followed by the release of Vapor 2.0 in May 2017.[10]

The framework was rewritten for Vapor 3.0[11] to be built on Apple's non-blocking networking framework SwiftNIO. Vapor 3 was released in May 2018. Apple cited the speed with which Vapor (along with Kitura) adopted the new SwiftNIO framework on the main Swift.org server page.[12]

Vapor 3's beta period saw educational material published by Packt,[13] Paul Hudson,[14] Razeware LLC,[15] and lynda.com.[16] Vapor was recognized by Swift.org with an official Swift Forum in its inaugural group of Related Projects[17] in May 2018.

Vapor 4[18]'s Alpha 1 Release started in May 2019.

Releases[edit]

Version Release date Swift version
Old version, no longer supported: 1.0 Sep 15, 2016 ≥ 3.0
Older version, yet still supported: 2.0 May 17, 2017 ≥ 3.1
Current stable version: 3.0 May 4, 2018 ≥ 4.1
Future release: 4.0 To be confirmed ≥ 5.1
Legend: Old version, no support Older version, still supported Current stable version Latest preview version Future release

Source: Vapor Docs & GitHub Releases.[19][20]

Features[edit]

Vapor supports the following features:[21]

  • Async / non-blocking IO
  • Authentication: basic, bearer, JWT, and password
  • Cache: Redis and in-Memory
  • Commands / console formatting
  • Content Negotiation: JSON, multipart, and URL-encoded form
  • Crypto: RNG, ciphers, digests, RSA
  • Dependency Injection / Inversion of Control[22]
  • Fluent ORM: MySQL,[23] PostgreSQL, and SQLite
  • HTTP Client and Server
  • Leaf Templating: HTML etc
  • Logging
  • URL Routing
  • Validation
  • WebSocket client and server

References[edit]

  1. ^ "Vapor 0.1.0 Release". 2016-01-25. Retrieved 2018-04-03.
  2. ^ "Server-side Swift Frameworks Comparison". Retrieved 2018-05-24.
  3. ^ "Vapor 3.3.0 Release". 2019-02-28. Retrieved 2019-02-28.
  4. ^ "Vapor GitHub Organization". Retrieved 2018-04-03.
  5. ^ "vapor/vapor LICENSE at master". 2018-02-23. Retrieved 2018-04-03.
  6. ^ "Swift Server APIs". 2016-10-25. Retrieved 2018-05-22.
  7. ^ "Swift Blog: Server APIs Work Group". 2016-10-25. Retrieved 2018-05-22.
  8. ^ "Swift is Open Source". 2015-12-03. Retrieved 2018-04-03.
  9. ^ "Vapor 1.0.0 Release". 2016-09-15. Retrieved 2018-04-03.
  10. ^ "Vapor 2.0.0 Release". 2018-05-17. Retrieved 2018-04-03.
  11. ^ "Vapor 3.0.0 released". 2018-05-04. Retrieved 2018-05-23.
  12. ^ Inc., Apple. "Swift.org". Swift.org. Retrieved 2018-10-04.
  13. ^ Patel, Ankur (2018-03-30). Hands-On Full-Stack Development with Swift. Packt Publishing. ISBN 978-1788625241.
  14. ^ Hudson, Paul (2018-03-01). Server-Side Swift (Vapor Edition).
  15. ^ Condon, Tim; et al. Server Side Swift with Vapor. Razeware LLC.
  16. ^ "Learning Server-Side Swift with Vapor".
  17. ^ "Introducing Related Projects to Swift Forums". 2018-05-10.
  18. ^ VAPOR (2019-05-28). "Vapor 4: Alpha 1 Releases Begin". Medium. Retrieved 2019-09-09.
  19. ^ "Github: vapor/vapor Releases". GitHub. Retrieved 2018-05-04.
  20. ^ "Vapor Docs: Support". Vapor. Retrieved 2018-05-04.
  21. ^ "Vapor Docs". docs.vapor.codes. Retrieved 2018-05-22.
  22. ^ Elliot, Keith (2016-10-06). Swift 3 New Features. Packt Publishing. ISBN 978-1786462718.
  23. ^ Hussain, Shaista; et al. (2018-03-12). Proceedings of the 2018 6th International Conference on Bioinformatics and Computational Biology. Association for Computing Machinery. ISBN 978-1-4503-6348-8.