sudo apt install npm
npm install electron --save-dev
npm run start
Node and npm must be installed
npm i
npm run dev
To run the demo api request, you need to create two environment variables, API_USERNAME and API_PASSWORD. Do this using the following steps:
- Register for FIRST API Access at https://frc-events.firstinspires.org/services/api/register
- If necessary, reinstall npm packages to ensure you are up-to-date.
- Run the bash command:
export API_USERNAME=yourUsernameHere
- Run the bash command:
export API_PASSWORD=yourPasswordHere
- Alternatively to running the bash commands, create a
.env
file with two lines:API_USERNAME=yourUsernameHere
andAPI_PASSWORD=yourPasswordHere
. - Run the app.
- Before pressing the button to make an API request, fill out the boxes with valid data. If in doubt, try
2022
,migul
for the two boxes (in that order).