From e9f915ba9c7a47e51083f0d3eb3a25ebbbc86324 Mon Sep 17 00:00:00 2001 From: bjorn Date: Thu, 18 Sep 2008 20:12:01 +0000 Subject: Fixed gf-morpho-server.cabal name typo. Added basic README for morpho server. --- src/morpho-server/README | 21 +++++++++++++++++++++ src/morpho-server/gf-morpho-server.cabal | 22 ++++++++++++++++++++++ src/morpho-server/gf-morpo-server.cabal | 22 ---------------------- 3 files changed, 43 insertions(+), 22 deletions(-) create mode 100644 src/morpho-server/README create mode 100644 src/morpho-server/gf-morpho-server.cabal delete mode 100644 src/morpho-server/gf-morpo-server.cabal (limited to 'src') diff --git a/src/morpho-server/README b/src/morpho-server/README new file mode 100644 index 000000000..ad402749f --- /dev/null +++ b/src/morpho-server/README @@ -0,0 +1,21 @@ +Note, some paths are still hardcoded in MorphoServer.hs, you have to +change them before compiling. + +See ../server/README for requirements and installation instructions +(replace gf.fcgi with gf-morpho.fcgi). + +To build (doesn't yet use Cabal, since it needs some modules not yet in +the gf Cabal package): + +$ make + +When installed, try for example (change URL as appropriate): + +http://localhost/~bringert/morpho-server/gf-morpho.fcgi/eval?term=mkN+%22talo%22 + +This will output a JSON representation of the resulting inflection table. +The JSON representation should be changed, I've noticed that it's much nicer +to have fixed object field names in JSON when using GWT. Perhaps the format +should be: + +[[key, value]] diff --git a/src/morpho-server/gf-morpho-server.cabal b/src/morpho-server/gf-morpho-server.cabal new file mode 100644 index 000000000..590365109 --- /dev/null +++ b/src/morpho-server/gf-morpho-server.cabal @@ -0,0 +1,22 @@ +name: gf-morpho-server +version: 1.0 +cabal-version: >= 1.2 +build-type: Simple +license: GPL +license-file: LICENSE +synopsis: FastCGI Morphology Server for Grammatical Framework + +executable gf-morpho.fcgi + build-depends: base, + old-time, + unix, + directory, + containers, + gf, + cgi, + fastcgi, + json, + utf8-string + main-is: MorphoServer.hs + other-modules: + FastCGIUtils diff --git a/src/morpho-server/gf-morpo-server.cabal b/src/morpho-server/gf-morpo-server.cabal deleted file mode 100644 index 590365109..000000000 --- a/src/morpho-server/gf-morpo-server.cabal +++ /dev/null @@ -1,22 +0,0 @@ -name: gf-morpho-server -version: 1.0 -cabal-version: >= 1.2 -build-type: Simple -license: GPL -license-file: LICENSE -synopsis: FastCGI Morphology Server for Grammatical Framework - -executable gf-morpho.fcgi - build-depends: base, - old-time, - unix, - directory, - containers, - gf, - cgi, - fastcgi, - json, - utf8-string - main-is: MorphoServer.hs - other-modules: - FastCGIUtils -- cgit v1.2.3