教育目的Web編程環境:CodeWorld

jopen 10年前發布 | 12K 次閱讀 CodeWorld

CodeWorld是一個教育性的,基于Web的編程環境。用Haskell中的一個變種開發。它包括:

  • 一套基于Web的工具,讓學生輕松地創建自己的電腦繪圖,動畫和游戲。
  • 電腦游戲一個簡單的數學模型,設計靈感來自gloss。
  • 能夠讓學生運行和使用他們的作品就在Web瀏覽器中,使用GHCJS作為一個編譯器。

構建和部署

Building CodeWorld is, unfortunately, an involved process at the moment. Here are the approximate step by step instructions to get an example working:

  1. Install GHC 7.8, since it's required for GHCJS.
  2. Get a patched version of cabal (https://github.com/ghcjs/cabal) and then git checkout ghcjs to switch to the GHCJS branch, and finallycabal install both the Cabal and cabal-install packages.
  3. Get GHCJS itself (https://github.com/ghcjs/ghcjs) and cabal install.
  4. Run ghcjs-boot --dev.
  5. Check out ghcjs-dom (https://github.com/ghcjs/ghcjs-dom) and install it with cabal install --ghcjs.
  6. Check out ghcjs-canvas (https://github.com/ghcjs/ghcjs-canvas) and install it with cabal install --ghcjs.
  7. Install the codeworld-base package from this project: cd codeworld-base && cabal install --ghcjs.
  8. Build codeworld-server from this project: cd codeworld-server && cabal build
  9. Get a Google API key, and store it in web/clientId.txt.
  10. Run the server: cd codeworld-server && ./run.sh 8080.

You can now access the CodeWorld system at http://localhost:8080.

項目主頁:http://www.baiduhome.net/lib/view/home/1408277697938

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!