讨论区 综合讨论区 主题详情
lyen000
老师参与 能讲一下在windows下如何自己搭建

所有回复(2)

讲的也不详细啊

Tools

You will need to install the following:

Node.js (LTS version should be fine)

Git

Python 2.7

MongoDB (You should also setup a service script)

Set Up

First open up cmd.exe
/Powershell/Git Bash/any terminal.

You'll want to fork the repo on Github, then clone it to your machine.

git clone https://github.com/$GITHUB_USERNAME/codecombat.git
cd codecombat
git remote add -f origin https://github.com/codecombat/codecombat.git

You'll then want to install the dependencies and build the asset files.

npm install

Start MongoDB if you haven't, then download the database dump at http://analytics.codecombat.com:8080/dump.tar.gz, extract the contents (7-Zip is a good option), then

mongorestore --drop path/to/dump

(If it says that there are no reachable servers but there is a mongod process running try adding --host=127.0.0.1
to the end of the command.)

Running

Either run npm run dev
(live coding) or npm start
(just previewing) to start the server.

Visit http://localhost:3000 to see your CodeCombat setup in action.


2016-3-6

在github上找到repo 找wiki里面有

2016-3-6

回复

代码语言
字号
发布

发表观点要登录哦!

最近活动:2016-3-6
创建时间:2016-3-5
浏览次数:1464
关注人数:1

使用协议与隐私政策

感谢您使用网易云课堂!

为了更好地保障您的个人权益,请认真阅读《使用协议》《隐私政策》《服务条款》的全部内容,同意并接受全部条款后开始使用我们的产品和服务。若不同意,将无法使用我们的产品和服务。

同意
手机课堂
下载App
返回顶部