教育目的Web编程环境:CodeWorld
jopen
10年前
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.