- You need
npm install -g node-gyp
to compile native addons (repo). This package provides a CLI to generate boilerplate code which is used to compile C or C++ code into Native Addon or DLL with .node extension. - You need to install Python v2.7, v3.5, v3.6, or v3.7 (node-gyp uses it)
- You need
make
- You need
gcc
Папей гавнаnpm install -g node-gyp
- Install
Python 2.7
npm install -g --production windows-build-tools
ORnpm install --global --production windows-build-tools --vs2019
- INSTEAD OF step 3 you can install Visual Studio Build Tools then
npm config set msvs_version 2019
- Full guide
- OR another guide
npm run build
to rebuild server- OR
npm run build-logic
(change inside for linux) to rebuild logic as terminal executable
- node-gyp into cmake.js
-
nano /etc/ssh/sshd_config
edit port (security) -
Restart the server
-
npm install -g forever
-
npm run start-prod
- Node js guide
- Websockets js
- GH WebSocket
- GH Netease pomelo Node
- GH Colyseus Node
- WebSocket OR Socket.io
- WebSocket, Socket.io guide
- GH node-gyp (PITA)
- GH Cmake.js (try later)
- GH NAPI
- GH NAPI Examples
- GH acutest unit tests
- GH Modern cpp guide
- GH String pool
- String allocating
- GH googletest
- Firebase pros/cons
- Webpack config
- Webpack online config
- GH REST API MySQL Generator
- Networking in games 1
- Networking in games 2
First Connect: // Id // Lobby // Ok -> json
//Wait Game Start: // json -> Map, Meta, Loop()
Meta Loop: // Chat
Loop: // My Units + Visible Units
Game End: // All Units, Meta
Disconnect: // Exception