浏览代码

remove mofuw (#4420)

Marwan Rabbâa 6 年之前
父节点
当前提交
28812a29c9

+ 0 - 11
frameworks/Nim/mofuw/README.md

@@ -1,11 +0,0 @@
-# Nim's Web Framework \"mofuw\"
-
-> mofuw is \***MO**re\* \***F**\*aster, \***U**ltra\* \***W**\*eb server.
-
-## Includes tests
-- plaintext: `localhost:8080/plaintext`
-- json: `localhost:8080/json`
-
-## Require
-- Nim => 0.18.0
-- mofuw => 1.1.8

+ 0 - 24
frameworks/Nim/mofuw/benchmark_config.json

@@ -1,24 +0,0 @@
-{
-  "framework": "mofuw",
-  "tests": [{
-    "default": {
-      "json_url": "/json",
-      "plaintext_url": "/plaintext",
-      "port": 8080,
-      "approach": "Realistic",
-      "classification": "Platform",
-      "database": "MySQL",
-      "framework": "None",
-      "language": "Nim",
-      "flavor": "None",
-      "orm": "Raw",
-      "platform": "None",
-      "webserver": "None",
-      "os": "Linux",
-      "database_os": "Linux",
-      "display_name": "mofuw",
-      "notes": "",
-      "versus": "Nim"
-    }
-  }]
-}

+ 0 - 23
frameworks/Nim/mofuw/mofuw.dockerfile

@@ -1,23 +0,0 @@
-FROM gcc:latest
-
-RUN apt update -yqq &&                                                  \
-    mkdir -p /nim &&                                                    \
-    cd /nim &&                                                          \
-    git clone -b devel https://github.com/nim-lang/Nim.git nim-devel && \
-    cd nim-devel &&                                                     \
-    git clone --depth 1 https://github.com/nim-lang/csources.git &&     \
-    cd csources &&                                                      \
-    sh build.sh &&                                                      \
-    cd ../ &&                                                           \
-    bin/nim c koch &&                                                   \
-    ./koch boot -d:release &&                                           \
-    ./koch tools
-
-ENV PATH $PATH:/nim/nim-devel/bin:/root/.nimble/bin
-
-RUN nimble install -y mofuw packedjson
-
-WORKDIR /mofuwApp
-COPY techempower.nim techempower.nim
-RUN nim c -d:release --threads:on -d:bufSize:512 techempower.nim
-CMD ["./techempower"]

+ 0 - 15
frameworks/Nim/mofuw/techempower.nim

@@ -1,15 +0,0 @@
-import mofuw, packedjson
-
-proc h(ctx: MofuwCtx) {.async.} =
-  case ctx.getPath
-  of "/plaintext":
-    mofuwResp(HTTP200, "text/plain", "Hello, World!")
-  of "/json":
-    mofuwResp(HTTP200, "application/json", $(%{"message": %"Hello, World!"}))
-  else:
-    mofuwResp(HTTP404, "text/plain", "NOT FOUND")
-
-newServeCtx(
-  port = 8080,
-  handler = h
-).serve()