Skip to content

Latest commit

 

History

History

Samples

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