- A host of some kind (Ubuntu 18.04 recommended)
- Node >8.0
- MySQL Server
- Redis Server (only required for production)
This section assumes you're using a Virtual Machine running Ubuntu 18.04
First, install node
(preferrably from node-source ppa), mysql-server
and redis
packages from apt
For node-gyp
, you will also need gcc g++ make
- Create a database for Belligerence to use:
CREATE DATABASE myBelligerenceDatabase;
- Create a user that will manipulate database:
USE myBelligerenceDatabase;
GRANT ALL PRIVILEGES ON myBelligerenceDatabase.* TO 'user'@'localhost' IDENTIFIED BY 'supersecretpassword';
- Clone repository somewhere and copy
.env.dist
into.env
file. Edit resulting file, changing Database name and credentials that you've created previously. You will also need Steam API key that you can grab from here
WARNING: OAuth return url won't work if your server is not running on port 80, for that you will need to either proxy the server with
nginx
, or runnode
as superuser (not recommended)
-
Run
npm install && npm run build
-
If everything went well you should be able to run the app with
node app.js
and access it fromPROTOCOL://ADDRESS:PORT
as specified in .env