教育目的Web編程環境: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:
- Install GHC 7.8, since it's required for GHCJS.
- 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. - Get GHCJS itself (https://github.com/ghcjs/ghcjs) and
cabal install
. - Run
ghcjs-boot --dev
. - Check out ghcjs-dom (https://github.com/ghcjs/ghcjs-dom) and install it with
cabal install --ghcjs
. - Check out ghcjs-canvas (https://github.com/ghcjs/ghcjs-canvas) and install it with
cabal install --ghcjs
. - Install the codeworld-base package from this project:
cd codeworld-base && cabal install --ghcjs
. - Build codeworld-server from this project:
cd codeworld-server && cabal build
- Get a Google API key, and store it in web/clientId.txt.
- Run the server:
cd codeworld-server && ./run.sh 8080
.
You can now access the CodeWorld system at http://localhost:8080.
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!