-
Notifications
You must be signed in to change notification settings - Fork 2
Installation
Nethloader consists of two parts:
- A backend, which contains the core logic of the service and serves the API.
- A frontend, which consumes the API to more easily manage the Nethloader instance.
-
npm
oryarn
(recommended) ffmpeg
nodejs
- A relational database
First of all, create a new file in server/config/MACHINENAME.machine.config.json
, where you'll add the server config.
Replace MACHINENAME
by your machine hostname. Take config.js
as the config model.
Then, inside the server/
folder, run the following scripts in order:
-
yarn
- Install and update dependencies. (only necessary once) -
yarn setup
- Configure the server using the cli installer (only necessary once) -
yarn start
- Start the server
-
npm install
- Install and update dependencies. (only necessary once) -
npm run setup
- Configure the server using the cli installer (only necessary once) -
npm run start
- Start the server
If you want to use the frontend you'll need to setup a proxy in order to serve the backend from your web server. Example nginx proxy config.
Nethloader backend can also be setup as a systemd service, opening it automatically on system bootup and allowing easier management. Example systemd .service unit
-
npm
oryarn
(recommended) nodejs
- A web server
Before building:
Copy and rename client/src/assets/config.default.js
to client/src/assets/config.js
and then adjust the settings as needed.
(optional) - Change the locale by copying the contents of your language file from client/src/assets/locales/COUNTRYCODE.js
to client/src/assets/locale.js
, overriding the existing content. COUNTRYCODE
is your country code in the common ISO format.
(optional) - Tweak colors and other layout settings by editing client/src/assets/style-vars.scss
.
Building:
Inside the client/
folder, run the following scripts in order:
-
yarn
- Install and update dependencies. (only necessary once) -
yarn build
- Build Nethloader frontend to theclient/dist
folder.
-
npm install
- Install and update dependencies. (only necessary once) -
npm run build
- Build Nethloader frontend to theclient/dist
folder.
Now serve the contents of client/dist
with your favourite web server (preferably nginx).