Servers Configuration and Administration / Настройка и Администрирование Серверов
Budget: $30 – $250 USD
It's necessary to configure and run tasks on the Main (1 server) and Work (3 servers) servers.
Main Server - stores data, and receives new data from the Work servers.
On Main, you need to install MongoDB.
Working Servers - collect new data every day and send it to the Main Server.
// Working Servers are already installed, you just need to connect them to the Main Server.
It's necessary to configure everything and start data collection.
===
I provide the following material:
Source,
Instructions for the code,
Servers.
===
Below are the installation instructions, which will help you understand the scope of work:
Main - the main server
Worker - working server
1) Install Node.js (15 is recommended), npm and pm2 (npm i -g pm2) on Main
2) Install Node.js 15, npm and pm2 (npm i -g pm2) on Worker
3) Install Docker and Docker-compose on Main. Docker is needed to run RabbitMQ and Redis
4) In the project folder on Main (main application) create an .env file. Specify APP_ENV (dev, prod), RABBITMQ_URL, RABBITMQ_USER, RABBITMQ_PASSWORD and REDIS_URL, MONGO_HOST, MONGO_PORT, <database name> (to be found in the code)
5) Create an .env file in the project folder on the Worker. Specify APP_ENV (dev, prod), RABBITMQ_URL, RABBITMQ_USER, RABBITMQ_PASSWORD in it
6) Install (pull up dependencies) on Main and Worker - npm install
7) Run docker (docker-compose -f docker-compose-app.yml up -d) on Main
8) Build projects on Main and Worker (npm run build)
8 *) If tor is not installed on the worker, install tor. Configure ports in torrc. In the .env file of the worker, register the ports of the torus
9) Run projects on Main and Worker (pm2 start build / index.js)
Main Server - stores data, and receives new data from the Work servers.
On Main, you need to install MongoDB.
Working Servers - collect new data every day and send it to the Main Server.
// Working Servers are already installed, you just need to connect them to the Main Server.
It's necessary to configure everything and start data collection.
===
I provide the following material:
Source,
Instructions for the code,
Servers.
===
Below are the installation instructions, which will help you understand the scope of work:
Main - the main server
Worker - working server
1) Install Node.js (15 is recommended), npm and pm2 (npm i -g pm2) on Main
2) Install Node.js 15, npm and pm2 (npm i -g pm2) on Worker
3) Install Docker and Docker-compose on Main. Docker is needed to run RabbitMQ and Redis
4) In the project folder on Main (main application) create an .env file. Specify APP_ENV (dev, prod), RABBITMQ_URL, RABBITMQ_USER, RABBITMQ_PASSWORD and REDIS_URL, MONGO_HOST, MONGO_PORT, <database name> (to be found in the code)
5) Create an .env file in the project folder on the Worker. Specify APP_ENV (dev, prod), RABBITMQ_URL, RABBITMQ_USER, RABBITMQ_PASSWORD in it
6) Install (pull up dependencies) on Main and Worker - npm install
7) Run docker (docker-compose -f docker-compose-app.yml up -d) on Main
8) Build projects on Main and Worker (npm run build)
8 *) If tor is not installed on the worker, install tor. Configure ports in torrc. In the .env file of the worker, register the ports of the torus
9) Run projects on Main and Worker (pm2 start build / index.js)