This project aim to create a simple real time dashboard.
If you are brave and in a linux machine, you can try the Installer-Linux.sh
🙃...
OR
Use the following steps:
- Get the project
~$ cd C:\
~$ git clone https://github.com/simone98dm/Angus.git
~$ cd Angus/
~$ npm install
- After you need to install the database (you should first install mysql)
~$ pwd
C:\Angus
~$ mysql -uroot -p
(login)
mysql> CREATE DATABASE 'db_piedpiper';
mysql> CREATE USER 'piedpiper'@'localhost' IDENTIFIED WITH mysql_native_password BY 'PiedPiper2018';
mysql> GRANT SELECT, INSERT, UPDATE ON `db_piedpiper`.* TO 'piedpiper'@'localhost';
mysql> FLUSH PRIVILEGES;
(exit)
~$ mysql -uroot -p db_piedpiper < db_piedpiper.sql
(If you want to change some part of the process remember to change the file 'config.js' which contains all the information to get the access to database)
Before: run the API (the api inside the project are deprecated, the updated API can be found here)
[ UPDATED ]
~$ pwd
C:\
~$ git clone https://github.com/sebejbaldin/NodePiedPiper.git Api/ && cd Api/
~$ npm install
(check and fix the config.js with the correct credentials)
~$ nodemon index.js
[ DEPRECATED ]
~$ pwd
C:\Angus
~$ cd src/api/
~$ nodemon app.js
After: run the project
~$ pwd
C:\Angus
~$ npm start
For the first run the default credentials are: (😊)
user: c.override
pass: 123456
This project can be run in linux server.
~$ chmod +x Installer-Linux.sh
~$ ./Installer-Linux.sh
(follow the steps)
To run the webapp in local network, you must have to specify the host (0.0.0.0
), as we use port 80
the script must be runned as root
(N.B: disable apache2
service) at least with disable-host-check
we allow to get access to the webapp by disabling some checks
sudo ng serve --host 0.0.0.0 --port 80 --disable-host-check
To get a better look you may add this line to hosts
file in /etc/network/
(linux) or
C:\Windows\System32\drivers\etc\
<vm-address> dashboard.piedpiper.asdf
View the progress of the project by Gource
~$ cd Angus/
~$ Gource-View.sh
or
~$ gource -f -s 1 -a 1 --key --max-files 0 --disable-progress
Andrea Salata : UX & UI developer (html, css, ts).
Sebastiano Emy Jari Baldin : Back-end developer (nodejs, ts).
Simone Dal Mas : Front-end developer (angular2, nodejs).
(unregistered team member)
Alessandro Bravo: Influx, DB admin
Andrea Babuin: Influx, DB manager