Procedure to set up:
0. Assume we start relative to a ROOT_FOLDER
- Clone the latest version of cocos2d-x using
git clone git@github.com:cocos2d/cocos2d-x.gitunder ROOT_FOLDER. - Clone the latest version of cocos2d-html5 using
git clone git@github.com:cocos2d/cocos2d-html5.gitunder ROOT_FOLDER - Run this:
mkdir -p ROOT_FOLDER/cocos2d-x/projects/ && cd ROOT_FOLDER/cocos2d-x/projects/ && git clone git@github.com:sramanujan/TeenPatti.git - Go to ROOT_FOLDER/cocos2d-x/projects/TeenPatti/server and run
npm install. This will install all dependencies. - Run
node app.jsfrom within ROOT_FOLDER/cocos2d-x/projects/TeenPatti/server. - Thats it! You should be able to hit
localhost:3000and see the web version, the ios and android versions by running from the respective project files!!