Skip to content

MarcelKaemper/HackergameV2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HackergameV2

Browsergame made with Node.js and MySQL
Play an early demo version here: hackergameV2
Take a look at the Wiki to get started.

Features

  • Top players list
  • Clans
  • Terminal
  • Servers
  • Server software
  • SSH Connections to your servers via terminal
  • Realtime stockmarket
  • Mail system
  • Money transfers

Running it locally

Installing NodeJS

Debian based distributions:

apt update
apt install nodejs

Arch based distributions:

pacman -S nodejs

Downloading the repository

git clone https://github.com/MarcelKaemper/HackergameV2.git

Create database file

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;

Run the server:

npm install  
node bin/www