-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Installation guide of lordofpomelo
Lordofpomelo is a massively multiplayer online role-playing game for pomelo framework and composed of character, mob, equipment, battle, chat, skill, upgrade and task system etc.
It is completed less than two months and has about 6000 lines codes in server and client side respectively. Base on pomelo framework on server side and colorbox framework on client side, lordofpomelo supports 1000 players concurrent access in one scene and shorten the response time to 200 millisecond.
- operating system: Linux or Mac os
- database: mysql
git clone https://github.com/NetEase/lordofpomelo.git
cd lordofpomelo && sh npm-install.sh
location of sql file: './game-server/config/schema/Pomelo.sql'
- Install mysql database
- Login database:
mysql -uUsername -pPassword
- Create database:
mysql> create database Pomelo
- Choose database:
mysql> use Pomelo
- Import sql file:
mysql> source ./game-server/config/schema/Pomelo.sql
The database configuration locate in './game-server/config/mysql.json' which you can modify the parameters.
{
"development":
{
"host": "127.0.0.1",
"port": "3306",
"database": "Pomelo",
"user": "root",
"password": "123456"
},
"production":
{
"host" : "127.0.0.1",
"port" : "3306",
"database" : "Pomelo",
"user" : "root",
"password" : "123456"
}
}
Both game-server and web-server should be started, and game-server can be started by command
pomelo start
(Installation guide of lordofpomelo)
while web-server is
cd web-server && node app