-
Notifications
You must be signed in to change notification settings - Fork 0
Setup
hammy3502 edited this page Dec 20, 2020
·
4 revisions
comp-status consists of 3 parts, central-server
, the server that processes all computer resource information and distributes it, server
s, the computers that send their resource information to central-server
, and client
s that access the data.
central-server
Setup:
NOTE: This should be done before the setup of either server
or client
- Download the repository using
git clone https://github.com/hammy3502/comp-status
inside the folder where you want to store the central-server files -
cd comp-status/central-server
and runserver_manager.py
to configure the server, making sure to set the following:- The port
- The name of your domain (if using a Let's Encrypt cert)
- Add at least one user account
- If using Let's Encrypt, follow the instructions using Certbot to get a certificate.
- Install Node.js, enter the
comp-status/client/react-ui
directory, and runnpm install
followed bynpm run build
. - Run
run_server.py
if using a Let's Encrypt certificate orapp.py
if you're not. - If you want to access resource information outside your LAN, port forward the port configured in step 2.
server
Setup:
- Download the repository using
git clone https://github.com/hammy3502/comp-status
inside the folder where you want to store the server files - Run
main.py
inside ofcomp-status/server
and follow the instructions - Configure
main.py
to run from its directory at boot through whatever means your operating system provides
client
Setup:
- Visit the URL of the central server (including the port if not using port 80) in your browser
- Enter the IP address and port of the central server, along with a registered username and password.