This project was generated with:
Package | Version | Optional |
---|---|---|
Node JS | 12.16.1 | ✘ |
Maria DB | 10.1.44 | ✘ |
Angular CLI | 9.1.0 | ✔ |
Installing NodeJS and NPM for Linux systems
sudo apt update -y
sudo apt upgrade -y
sudo apt install nodejs -y
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
Installing MariaDB server and set execution permitions
sudo apt install mariadb-server -y
mysql --user="root" --database="mysql" --execute="update user set plugin='' where User='root'; flush privileges;"
Installing Angular CLI (optional)
sudo npm install -g @angular/cli@9.1.0
If you want to add a different user interface (UI) in order to manage the system, execute the following commands in a shell window after editing the folder project MiiBot-client.
cd MiiBot-client
npm install
ng build --prod
Open the configuration file and set your token keys and params before start the server.
nano MiiBot-server/src/config.ts
Set the Telegram API token key on bot ➞ token.
If you don't have this number talk with Bot Father, create a bot and save its token key.
Install the dependences and start the program.
cd MiiBot-server
npm install
sudo npm start