Please checkout Part 3
of our blog series to learn what this is about.
This is a tiny framework, for a more full featured, synchronous
Express-like API in Swift, have a look at
ExExpress
(as used in ApacheExpress).
Noze.io comes w/ an asynchronous variant (but is using
Dispatch, not SwiftNIO - stay tuned).
Note: There is Macro.swift,
a more capable (and maintained) version of this.
Using the Package
Micro Hello World in 5 minutes (or in 30s using the
swift-xcode image below):
$ mkdir MicroHelloWorld && cd MicroHelloWorld
$ swift package init --type executable
MicroExpress is brought to you by
the
Helge Heß
and
ZeeZide.
We like
feedback,
GitHub stars,
cool contract work,
presumably any form of praise you can think of.
There is a #microexpress channel on the
Noze.io Slack. Feel free to join!
Want a Video Tutorial?
(this one is still using SwiftXcode instead of the Xcode 11 SPM support)
µExpress
A micro server framework on top of SwiftNIO.
It adds an Express like API on top of the low level SwiftNIO API.
This package is part of the Always Right Institute‘s blog series about the Swift Server Workgroup‘s offical Swift HTTP API.
Please checkout Part 3 of our blog series to learn what this is about. This is a tiny framework, for a more full featured, synchronous Express-like API in Swift, have a look at ExExpress (as used in ApacheExpress). Noze.io comes w/ an asynchronous variant (but is using Dispatch, not SwiftNIO - stay tuned).
Note: There is Macro.swift, a more capable (and maintained) version of this.
Using the Package
Micro Hello World in 5 minutes (or in 30s using the swift-xcode image below):
Update
Package.swift
to include the dependency:Change the
main.swift
fromprint("Hello World")
into:Done. Access via: http://localhost:1337/
Building the Package
Xcode 11
Using Xcode 11 one can just open the
Package.swift
file.macOS / Linux Command Line
Linux via macOS Docker
Links
Who
MicroExpress is brought to you by the Helge Heß and ZeeZide. We like feedback, GitHub stars, cool contract work, presumably any form of praise you can think of.
There is a
#microexpress
channel on the Noze.io Slack. Feel free to join!Want a Video Tutorial?
(this one is still using SwiftXcode instead of the Xcode 11 SPM support)