Changed port and added "using with firecrawl" section on readme

This commit is contained in:
rafaelsideguide 2024-06-28 11:51:24 -03:00
parent d833a132a5
commit 7dffaaa3e2
3 changed files with 11 additions and 3 deletions

5
.gitignore vendored
View File

@ -14,4 +14,7 @@ apps/test-suite/node_modules/
apps/test-suite/.env
apps/test-suite/logs
apps/test-suite/load-test-results/test-run-report.json
apps/test-suite/load-test-results/test-run-report.json
apps/playwright-service-ts/node_modules/
apps/playwright-service-ts/package-lock.json

View File

@ -13,6 +13,7 @@ This is a simple web scraping service built with Express and Playwright.
## Install
```bash
npm install
npx playwright install
```
## RUN
@ -39,4 +40,8 @@ curl -X POST http://localhost:3000/scrape \
},
"check_selector": "#content"
}'
```
```
## USING WITH FIRECRAWL
Add `PLAYWRIGHT_MICROSERVICE_URL=http://localhost:3003/scrape` to `/apps/api/.env` to configure the API to use this Playwright microservice for scraping operations.

View File

@ -8,7 +8,7 @@ import { getError } from './helpers/get_error';
dotenv.config();
const app = express();
const port = process.env.PORT || 3000;
const port = process.env.PORT || 3003;
app.use(bodyParser.json());