Home Web Front-end JS Tutorial Build pomelo development environment_node.js

Build pomelo development environment_node.js

May 16, 2016 pm 04:43 PM
node

Development 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
Copy after login

2: Try pomelo installation to see if it is ok

pomelo --help 
Copy after login

3: Start development

pomelo init pomelo_demo
Copy after login

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 
Copy after login

The installation is complete

5: Then enter the game-server directory

Type

pomelo start 
Copy after login

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 
Copy after login

Then in the web-server directory

node app

Follow the prompts and you can view the effect on the browser

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to delete node in nvm How to delete node in nvm Dec 29, 2022 am 10:07 AM

How to delete node in nvm

How to use express to handle file upload in node project How to use express to handle file upload in node project Mar 28, 2023 pm 07:28 PM

How to use express to handle file upload in node project

How to do Docker mirroring of Node service? Detailed explanation of extreme optimization How to do Docker mirroring of Node service? Detailed explanation of extreme optimization Oct 19, 2022 pm 07:38 PM

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

An in-depth analysis of Node's process management tool 'pm2” An in-depth analysis of Node's process management tool 'pm2” Apr 03, 2023 pm 06:02 PM

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? Pi Node Teaching: What is a Pi Node? How to install and set up Pi Node? Mar 05, 2025 pm 05:57 PM

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. Let's talk about how to use pkg to package Node.js projects into executable files. Dec 02, 2022 pm 09:06 PM

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

Token-based authentication with Angular and Node Token-based authentication with Angular and Node Sep 01, 2023 pm 02:01 PM

Token-based authentication with Angular and Node

How to configure and install node.js in IDEA? Brief analysis of methods How to configure and install node.js in IDEA? Brief analysis of methods Dec 21, 2022 pm 08:28 PM

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

See all articles