From: Alexis Laferrière Date: Sun, 22 May 2016 18:49:13 +0000 (-0400) Subject: xymus.net: move server config to contrib X-Git-Url: http://nitlanguage.org xymus.net: move server config to contrib Signed-off-by: Alexis Laferrière --- diff --git a/contrib/xymus_net/Makefile b/contrib/xymus_net/Makefile new file mode 100644 index 0000000..eff98e3 --- /dev/null +++ b/contrib/xymus_net/Makefile @@ -0,0 +1,9 @@ +all: xymus.net + +xymus.net: ../benitlux/src/server/benitlux_restful.nit $(shell ../../bin/nitls -M xymus_net.nit) + ../../bin/nitc -o $@ xymus_net.nit + +../benitlux/src/server/benitlux_restful.nit: + make -C ../benitlux src/server/benitlux_restful.nit + +pre-build: ../benitlux/src/server/benitlux_restful.nit diff --git a/lib/nitcorn/examples/src/xymus_net.nit b/contrib/xymus_net/xymus_net.nit similarity index 99% rename from lib/nitcorn/examples/src/xymus_net.nit rename to contrib/xymus_net/xymus_net.nit index 13ecc60..726cb6a 100644 --- a/lib/nitcorn/examples/src/xymus_net.nit +++ b/contrib/xymus_net/xymus_net.nit @@ -1,6 +1,6 @@ # This file is part of NIT ( http://www.nitlanguage.org ). # -# Copyright 2014-2015 Alexis Laferrière +# Copyright 2014-2016 Alexis Laferrière # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/lib/nitcorn/README.md b/lib/nitcorn/README.md index 6bc8b36..2db66b8 100644 --- a/lib/nitcorn/README.md +++ b/lib/nitcorn/README.md @@ -26,7 +26,8 @@ and the FFI enables calling services in different languages. A minimal example follows with a custom `Action` and using `FileServer`. More general examples are available at `lib/nitcorn/examples/`. -It includes the configuration of `http://xymus.net/` which merges many other _nitcorn_ applications. +For an example of a larger project merging many _nitcorn_ applications into one server, +take a look at the configuration of `http://xymus.net/` at `../contrib/xymus_net/xymus_net.nit`. Larger projects using _nitcorn_ can be found in the `contrib/` folder: * _opportunity_ is a meetup planner heavily based on _nitcorn_. diff --git a/lib/nitcorn/examples/Makefile b/lib/nitcorn/examples/Makefile index d1bdeae..b1bbed9 100644 --- a/lib/nitcorn/examples/Makefile +++ b/lib/nitcorn/examples/Makefile @@ -2,10 +2,6 @@ all: bin/restful_annot mkdir -p bin/ ../../../bin/nitc --dir bin src/nitcorn_hello_world.nit src/simple_file_server.nit -xymus.net: - mkdir -p bin/ - ../../../bin/nitc --dir bin/ src/xymus_net.nit - pre-build: src/restful_annot_gen.nit src/restful_annot_gen.nit: ../../../bin/nitrestful -o $@ src/restful_annot.nit