puppet-orange
is a NodeJS Puppeteer script. Its purpose is to check for the eligibility of a postal address to the Orange fiber offer.
Given an address, the script validates the status of this address on the Orange eligibility website.
Minimal NodeJs version: 8 (use of
util.promisify
).
git clone git@github.com:GLabat/puppet-orange.git
cd puppet-orange
yarn install
yarn start '<address>'
- Build the Docker image
docker build . -t puppet-orange
- Run
-
To run in Docker,
docker run -it -v "$(pwd)":/app puppet-orange yarn start -a '<address>'
The script will return the following codes:
- Bad usage:
99
- Eligible:
0
- Not yet eligible:
1
- Not eligible:
2
You can pass the character 'd' as second argument of the start
script. This would activate the debug mode:
- run Chrome in non-headless mode
- add capture of remote browser console
- add debug logs
- Review Docker image. Should contain everything
- Add Prettier
- Add yargs
- Update packages
- Add color output
- Capture localisation map on Orange website