Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
call-git
connect-git
connect-static
cows2code
echod
echozd
express-simple
httpd-cookies
httpd-helloworld
httpd-static
miniirc
sleep
swiftmons
todo-mvc-redis
todo-mvc
udpd
GNUmakefile
LICENSE
README.md
build-all.sh
update-all.sh

README.md

Noze.io Examples

NOTE: It is intentional that those are full standalone SPM packages which clone Noze.io, instead of being part of a big package with multiple targets.

Examples:

  • echod (plain echod, just pipes the socket into itself)
  • echozd (way better echod, tweakz the input a little)
  • miniirc (a tiny IRC server, less than perfect but working)
  • call-git (invoke git log and process the output)
  • sleep (just sleep n seconds)
  • httpd-helloworld (very simple HTTP server)
  • httpd-static (serve an HTML file and an image using just http)
  • httpd-cookies (small server to test cookies using just http)
  • connect-static (serve an HTML file and an image using just serveStatic)
  • connect-git (simple Connect based HTTP server)
  • express-simple (Mustache templates, forms, some JSON, cookies, session)
  • todo-mvc (A simple in-memory Todolist application backend aka TodoMVC)
  • todo-mvc-redis (A simple Todolist application backend aka TodoMVC which stores the data into Redis)

building

Just enter the directory and type swift build or make, like so:

cd echozd
swift build

And on Linux you need GCD:

swift build -Xcc -fblocks -Xlinker -ldispatch

Running

Build results are put into .build/debug/$TOOL, run them straight from there, like so:

.build/debug/echozd