Browsergame made with Node.js and MySQL
Play an early demo version here: hackergameV2
Take a look at the Wiki to get started.
- Top players list
- Clans
- Terminal
- Servers
- Server software
- SSH Connections to your servers via terminal
- Realtime stockmarket
- Mail system
- Money transfers
apt update
apt install nodejs
pacman -S nodejs
git clone https://github.com/MarcelKaemper/HackergameV2.git
Create the file public/javascripts/database/dbconn.js
and fill in the credentials to your database.
You can download the structure of our database here (If outdated -> Open an issue)
Example dbconn.js
var mysql = require('mysql');
var pool = mysql.createPool({
host: "",
user: "",
password: "",
database: ""
});
module.exports = pool;
npm install
node bin/www
OR
pm2 start bin/www