Ensure you have a copy of the backend running. If the backend is up, accessing http://localhost:2000/stats?name=hypixel
should work and return a successful response.
After cloning this repo, simply run node server.js
to launch the website on port 8080.
~ $ git clone https://github.com/NadeshikoStats/nadeshiko.io.git
~ $ cd nadeshiko.io
~/nadeshiko.io $ node server.js
Ports below 1024 are restricted on Linux. To access the website normally on port 80, redirect port 8080 to port 80. One
way of achieving this is via iptables
:
$ sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
Alternatively, if you are operating in an environment where port 80 is not restricted, simply change
const port = 8080;
in server.js
.