Source code of Palermo server (Node JS, PHP scripts, MySQL)
Requirements for running a palermo server:
- Node JS v12.19.0 (I haven't tested prior 12 but it should work on v10.xx.x too)
- PHP 7.x/8.x
- Apache 2.x+
- MySQL 5.7+
Required libraries for node js.
- express
- path
- http
- ws
- mysql
You can install them with npm install <library_name>
on your command prompt.
I've set server.js
listening to port 5002 and that should not be changed. The unity game's files aren't open source (not at the moment), and they listen to port 5002 too, so it won't establish the connection properly.
By importing the database into your phpmyadmin, pasting the php files on htdocs (with the analogous edits) and by simply entering node server.js
on your cmd, then the server will be running.
The above server files are exclusively for v0.2.
The idea is to make it available anytime by anyone, without the need of a server that can shut down any moment. This is right now developed by Angelo M. but anyone is welcomed to contribute. It's released under the MIT License.