CAFECA-IO / BAIFA-web-crawling

BAIFA conducts web crawling from iSunCloud in frequence
0 stars 0 forks source link

修改 readme #65

Closed gibbs-shih closed 2 months ago

gibbs-shih commented 2 months ago

修改 readme 架構

gibbs-shih commented 2 months ago

BAIFA Web Crawler Setup Guide

This guide will walk you through the steps to set up the BAIFA web crawler on a remote server.

Deploy crawler - remote server

Environment

Steps

Here are the main steps to set up the compilation environment and run the crawler:

  1. Set up the environment

  2. Clone the repository and configure files

  3. Install dependencies and set up the database

  4. Run the crawler using PM2


Set up the compilation environment

Connect to the remote server and open the terminal

Create a directory under root using sudo

Change the owner of /workspace to ${user}

Go to the workspace directory

Clone the repository from GitHub

Go to the BAIFA-web-crawling directory

Set up the .env file

Navigate to the src/constants directory

Edit the chain_info.ts file

Install packages

Push the database schema to the remote server

Install PM2

Use pm2 to run the crawler

(If needed) Terminate the pm2 process

(If needed) Continuously observe the process log

gibbs-shih commented 2 months ago

take 1 hr