Tutorial Installation middleware (Magoware)

Vandeko

New Member ++
Joined
Aug 19, 2020
Messages
6
Reaction score
6
I will try to share with all members here about the installation of a very impressive Magoware middleware application suitable for lodging and hotels. Previously, I was grateful to the admin group for being allowed to join this large group.



apt install curl -y

curl -sL https://deb.nodesource.com/setup_8.x | bash -

apt install nodejs build-essential libssl-dev git -y

mkdir /usr/local/src/magoware/

git clone MAGOWARE/backoffice-administration /usr/local/src/magoware/

cd /usr/local/src/magoware/

npm install -g sequelize-cli

sequelize db:migrate



apt-get update

echo -e "deb Index of /232905/apt/debian stretch mysql-5.7\ndeb-src Index of /232905/apt/debian stretch mysql-5.7" > /etc/apt/sources.list.d/mysql.list

wget -O /tmp/RPM-GPG-KEY-mysql https://repo.mysql.com/RPM-GPG-KEY-mysql --no-check-certificate

apt-key add /tmp/RPM-GPG-KEY-mysql


apt update

apt install mysql-server -y



mysql -u root -p

CREATE DATABASE magoware;

GRANT ALL PRIVILEGES ON magoware.* TO 'root'@'localhost' IDENTIFIED BY 'password';

FLUSH PRIVILEGES;

quit;



nano /etc/mysql/conf.d/mysql.cnf

[mysqld]

sql-mode="NO_ENGINE_SUBSTITUTION"

service mysql restart




run server



cd /usr/local/src/magoware and excution this command

node server.js sync/sudo or nohup node server.js &

To make it easier to run, make a file.





nano /bin/magoware

and input this

cd /usr/local/src/magoware

nohup node server.js &

ctrl+x y

chmod +x magoware
 
Back
Top