Darkstar is an API to flush multiple CDN.
Flush KeyCDN cache:
curl -v -X DELETE http://localhost:9080/v1/caches/keycdn/zones/${FASTERIZE_CONFIG_ID} \
-H Content-Type:application/json \
--data '{"authorizationToken": "${FASTERIZE_API_KEY}"}'
Current available CDN : KeyCDN, CloudFront, Incapsula and Fastly.
Install tools:
npm install -g typescript gulp-cli typings
Install dependencies:
typings install
npm install
- Create a folder named after the last commit SHA containing the projet (for instance folder c770266609c751c9759451b37ba5f736d4f9862b)
tmp_folder
> c770266609c751c9759451b37ba5f736d4f9862b
> project files
- Save this folder in an tar archive
tar czf darkstar_c770266609c751c9759451b37ba5f736d4f9862b.tgz -C tmp_folder .
- release the file in files01-misc.fstrz.net:~/var/www/files/warp
Start Darkstar:
gulp start
Run tests:
gulp test
Continuously run tests:
gulp watch-test
When started, go to http://localhost:9080/doc