Make sure you have NodeJS 18 and PM2 (you can follow Step 3 & 4 on link here) installed before starting further.
Step 1: Install Ulixee Hero
-
Create a new app folder:
cd /home && mkdir hero-app && cd hero-app
-
Install Hero browser & express modules:
npm i --save @ulixee/hero @ulixee/hero-core express
-
Clone the github repository:
git clone https://github.com/saimintech/extraction.git
-
Add Hero service and Express service on PM2
pm2 start npx --name "ulixee-cloud" -- @ulixee/cloud start
pm2 start /home/hero-app/index.js
pm2 save
Now we need to setup a reverse proxy to access the expresss endpoint.