Installation
First of all, check it completely according to requirement.
Clone NetCoCo-UI.
# git clone https://github.com/mrzack99s/netcoco-ui
Install dependency.
Yarn (Recommend)
# yarn install
NPM
# npm install
Change base URL of API at file .env.production.
VUE_APP_VERSION=<NetCoCo-version> VUE_APP_ROOT_API=http://<Domain or Hostname>:8080
Build NetCoCo-UI with production.
Yarn (Recommend)
# yarn build --mode production
NPM
# npm build --mode production
Make NetCoCo directory and create sub-directory
Linux
|usr |share |netcoco |templates |dist | ....... |config.yaml |netcoco-linux-amd64
Make directory with sudo mkdir /usr/share/netcoco
Windows
|NetCoCo |templates |dist | ....... |config.yaml |netcoco-windows.exe
Download templates and executable file from Github releases
Untar or unzip templates
Copy /dist of NetCoCo-UI to /templates of NetCoCo.
Create config.yaml in NetCoCo directory with executable file. (In linux: /usr/share/netcoco)
netcoco: port: <port-number> #(default: 8080) db: sql: hostname: <db-hostname>:<db-port> username: <db-username> password: <db-password> db_name: <db-name> security: salt: <salt-in-hex-32digit>
Edit main.js in NetCoCo directory. (In linux: /usr/share/netcoco/templates/js)
const BASE_API_URL = 'http://<Hostname or Domain name>:<port>/v1.0-alpha/secure/api';
On Linux, must install the netcoco service
Download service file
# sudo curl -L https://raw.githubusercontent.com/mrzack99s/netcoco/main/netcoco.service -o /etc/systemd/system/netcoco.service
Enable and start service
# sudo systemctl enable --now netcoco
Enable sysctl ping
# sudo sysctl -w net.ipv4.ping_group_range="0 2147483647"
On Windows, run executable file.
Last updated
Was this helpful?