https://github.com/hutsoninc/coop-claim-automation
Automatically fills out form and uploads files for co-op claims.
https://github.com/hutsoninc/coop-claim-automation
hutson internal-tool
Last synced: 4 months ago
JSON representation
Automatically fills out form and uploads files for co-op claims.
- Host: GitHub
- URL: https://github.com/hutsoninc/coop-claim-automation
- Owner: hutsoninc
- License: mit
- Created: 2018-03-23T15:16:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-29T16:48:16.000Z (over 6 years ago)
- Last Synced: 2025-05-17T13:52:47.025Z (5 months ago)
- Topics: hutson, internal-tool
- Language: JavaScript
- Homepage:
- Size: 56.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Co-op Claim Automation
Automatically fills out form and uploads files for co-op claims.
## Getting Started
### Prerequisites
* [Node.js](https://nodejs.org/en/)
### Installing
Clone the repo
```
git clone https://github.com/hutsoninc/coop-claim-automation.git
```Move into the repo directory and run `npm install`
```
cd coop-claim-automation && npm install
```### Setup
Create a new file called `.env` in the root directory and enter your environment variables.
```
DEALER_CLAIM_URL=your-url
DEERE_USER=your-username
DEERE_PWD=your-password
```Make a directory to store claim data.
> _This is where you will store all the files necessary to submit a claim. When submitting a claim, make a new folder and name it with the preapproval number._
```
mkdir claim-data
cd claim-data && mkdir processed skipped zipped
```Move back to the root directory, then into the app directory.
```
cd ../app
```Create claim and config files.
> _The `claims.csv` file is where you will enter in your claim information. You may also enter it in the `claims.json` file directly._
```
touch claims.csv claims.json config.json
```**Windows**
```
echo "" > claims.csv
echo "" > claims.json
echo "" > config.json
```In `config.json` file:
```
{
"email": "your-email",
"name": "your-name",
"phone": "your-phone"
}
```In `claims.csv` file:
```
Media Type,Invoice Amount,Media Name,Invoice Number,Invoice Date,Preapproval Number
```## Built With
* [Puppeteer](https://github.com/GoogleChrome/puppeteer) - Headless Chrome Node API
## Authors
* **Austin Gordon** - *Development* - [GitHub](https://github.com/AustinLeeGordon)
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.