Instalacao Izing 2023
Instalacao Izing 2023
Instalacao Izing 2023
▶️ UBUNTU 22.04
timedatectl set-timezone America/Sao_Paulo && apt update && apt upgrade -y && apt
install -y libgbm-dev wget unzip fontconfig locales gconf-service libasound2
libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1
libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0
libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1
libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1
libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-
utils python2-minimal build-essential postgresql redis-server && add-apt-repository
-y ppa:rabbitmq/rabbitmq-erlang && wget -qO -
https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.deb.sh
| sudo bash && apt install -y rabbitmq-server && rabbitmq-plugins enable
rabbitmq_management && wget https://dl.google.com/linux/direct/google-chrome-
stable_current_amd64.deb && apt install -y ./google-chrome-stable_current_amd64.deb
&& rm -rf google-chrome-stable_current_amd64.deb && wget -O install.sh
http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && bash install.sh aapanel
&& rm -rf install.sh && reboot
➥ PM2 Manager
🔹 Edite os arquivos:
➥ /etc/postgresql/14/main/postgresql.conf
Descomentar e deixar a linha como abaixo:
listen_addresses = '*'
➥ /etc/postgresql/14/main/pg_hba.conf
Deixar a linha como abaixo:
host all all 0.0.0.0/0
➥ /etc/redis/redis.conf
Descomentar e deixar a linha como abaixo:
requirepass 2000@23
▶️ INSTALAÇÃO DO IZING.
🔹 Clonar repositório.
git clone https://github.com/ldurans/izing.io.git /www/wwwroot
▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼
NODE_ENV=dev
BACKEND_URL=https://xxxx.xxxxx.xxxxx
FRONTEND_URL=https://xxxx.xxxxx.xxxxx
PROXY_PORT=443
PORT=xxxxx
DB_DIALECT=postgres
DB_PORT=5432
POSTGRES_HOST=localhost
POSTGRES_USER=postgres
POSTGRES_PASSWORD=SENHA_DO_POSTGRESQL
POSTGRES_DB=NOME_DA_DB
JWT_SECRET=DPHmNRZWZ4isLF9vXkMv1QabvpcA80Rc
JWT_REFRESH_SECRET=EMPehEbrAdi7s8fGSeYzqGQbV5wrjH4i
IO_REDIS_SERVER=localhost
IO_REDIS_PASSWORD=SENHA_DO_REDIS
IO_REDIS_PORT='6379'
IO_REDIS_DB_SESSION='2'
#CHROME_BIN=/usr/bin/google-chrome
#CHROME_BIN=/usr/bin/google-chrome-stable
#CHROME_BIN=null
RABBITMQ_DEFAULT_USER=USUARIO_RABBITMQ
RABBITMQ_DEFAULT_PASS=SENHA_RABBITMQ
# AMQP_URL='amqp://USUARIO_RABBITMQ:SENHA_RABBITMQ@localhost:5672?
connection_attempts=5&retry_delay=5'
▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲
▶️ SUBIR O BACKEND.
🔹 Execute o comando:
npm install
npm run build
npx sequelize db:migrate
npx sequelize db:seed:all
▶️ SUBIR O FRONTEND.
▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼
URL_API='https://xxxx.xxxxx.xxxxx'
FACEBOOK_APP_ID='23156312477653241'
▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲
🔹 Executar os comandos:
npm i -g @quasar/cli
npm install
quasar build -P -m pwa
➥ BACKEND:
Startup file: /www/web/NOME_DA_PASTA/backend/dist/server.js
Run dir: /www/web/NOME_DA_PASTA/backend
Se essa informação foi útil pra você, considere fazer um PIX para
(Telefone) 85985282207
Agradecimentos ao amigo de grupo @Thiago