Build pomelo development environment_node.js
May 16, 2016 pm 04:43 PMDevelopment prerequisites:
Windows system, please make sure your Windows system contains source code compilation tools. The source code of Node.js is mainly composed of C code and JavaScript code, but the gyp tool is used for source code project management, which is written in Python language. On the Windows platform, Node.js uses gyp to generate Visual Studio Solution files, which are eventually compiled into binary files through the VC compiler. Therefore, please make sure your Windows system meets the following two conditions before installation:
* 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 pomelo installation to see if it 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, type
npm-install.bat
The installation is complete
5: Then enter the game-server directory
Type
pomelo start
You can complete the startup of the server code
6: Then enter the web-server directory
Install the components client library first (make sure component is installed before installation, use npm install -g component to install)
Type
bin\component.bat
Then in the web-server directory
node app
Follow the prompts and you can view the effect on the browser

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How to use express to handle file upload in node project

How to do Docker mirroring of Node service? Detailed explanation of extreme optimization

An in-depth analysis of Node's process management tool 'pm2”

Pi Node Teaching: What is a Pi Node? How to install and set up Pi Node?

Let's talk about how to use pkg to package Node.js projects into executable files.

Token-based authentication with Angular and Node

How to configure and install node.js in IDEA? Brief analysis of methods
