This is a ES6/React/Webpack app.
Install NPM packages:
npm install
Set environment variables IWP_USERNAME
and IWP_PASSWORD
to your iRacing login details and run the 'scrapeData' NPM script:
npm run scrapeData
If using VS Code you can just update the values in .vscode/launch.json
and run the 'Scrape data' configuration (from the Debug tab).
{
/* ... */
"env": {
"IWP_USERNAME": "<IRACING USERNAME>",
"IWP_PASSWORD": "<IRACING PASSWORD>"
}
}
Start the server:
npm start
Press F5 (launch the 'Debug with Chrome' configuration) after starting the server with npm start
.