Development conditions:
For Windows systems, please make sure your Windows system includes source code compilation tools. The source code of Node.js is mainly composed of C++ code and JavaScript code, but it uses gyp tool to manage the source code, which is written in Python. On Windows platform, Node.js uses gyp to generate Visual Studio Solution files, and finally compiles them into binary files through the VC++ compiler. So, before installing, please make sure your Windows system meets the following two conditions:
* Python (2.5<version<3.0).
* VC++ compiler, included in Visual Studio 2010 (VC++ 2010 Express is also available)
node version 0.8.22
pomelo version 0.3.5
1: Install pomelo
npm install -g pomelo
2: Try whether the pomelo installation is OK
pomelo --help
3: Start development
pomelo init pomelo_demo
This will create a basic pomelo development environment, including game-server and web-server folders
4: The next step is to install node modules directly under the project directory and type in
npm-install.bat
Installation can be completed
5: Then enter the game-server directory
Knock in
pomelo start
The server code can be started
6: Then enter the web-server directory
Install the components client library first (make sure that the component is already installed before installation, use npm install -g component to install)
Knock in
bin/component.bat
Then in the web-server directory
node app
According to the prompts, you can browse the effects on the browser