This is the backend of the JSDOM-React scraper app. This is an ExpressJS-based server that uses JSDOM to scrape websites on command and passes back analytics data from what it retrieved.
- NodeJS & npm
- Run
npm install
- Run
npm run build
to transpile the Typescript (you must do this before the server Javascript code will update) - Run
npm run dev|testprod|prod
depending on the server mode you want to activate.dev
will run the Javascript code withnodemon
, so it will restart the server every time you runnpm run build
. This is convenient, but nodemon is not performant for production environments.prod
andtestprod
are both run with plainnode
, and there are currently no differences between them.- If persistent data is added, these two will probably be different in what data (production versus seeded development data) that they access, and otherwise behave the same