-
Notifications
You must be signed in to change notification settings - Fork 5
1. Running your own server
Hermes is programmed using node.js and uses Redis Casssandra as a database, so you need to have both of those installed before running your server. Furthermore, you should also install git to clone the source from this repo.
Download node from the official website and install it. The version we have used is 10.13.0 LTS, so it is recommended you use this version.
You can download Cassandra from this link.
You can download Git For Windows from here.
Open a terminal and paste in / type the following commands:
sudo apt update && sudo apt upgrade
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt install -y build-essential nodejs Installing Cassandra is very similar to installing Node. Paste these commands into a terminal:
wget http://dl.bintray.com/apache/cassandra/pool/main/c/cassandra/cassandra_3.11.3_all.deb
wget http://dl.bintray.com/apache/cassandra/pool/main/c/cassandra/cassandra-tools_3.11.3_all.deb
sudo apt install -y --fix-missing ./cassandra_3.11.3_all.deb ./cassandra-tools_3.11.3_all.debYou probably already know how to do this by now:
sudo apt install -y gitThese programs can all be installed at the same time:
sudo apt update && sudo apt upgrade
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
wget http://dl.bintray.com/apache/cassandra/pool/main/c/cassandra/cassandra_3.11.3_all.deb
wget http://dl.bintray.com/apache/cassandra/pool/main/c/cassandra/cassandra-tools_3.11.3_all.deb
sudo apt install -y build-essential nodejs git #redis-server # <-- To install Redis, uncomment this part (it isn't used, though).
sudo apt install -y --fix-missing ./cassandra_3.11.3_all.deb ./cassandra-tools_3.11.3_all.debFirst of all, clone the source to your device. To do this, open a terminal to the folder where you want to download it and paste in these commands:
git clone https://github.com/HermesMessenger/Hermes.git
cd Hermes
Then, before running the server, you have to initialize it by installing the NPM modules used.
Run these commands to install them:
npm install
npm start
You might see a warning during this step, but this is normal.
When you're done, open serverIP:8080 in a browser. If you are using the same device, you can use localhostas the IP.
You should have your own Hermes server running locally!
- If you don't, go back and make sure you did everything correctly.
- If you do and want to use your device as a Hermes server, you can continue to the next step
(You can only do this if you are using Debian)