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 buildto transpile the Typescript (you must do this before the server Javascript code will update) - Run
npm run dev|testprod|proddepending on the server mode you want to activate.devwill 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.prodandtestprodare 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