Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.23 KB

File metadata and controls

40 lines (29 loc) · 1.23 KB

currency-file-generator

Loads currency rates from a reliable source and creates, uploads a JSON representation to S3, and pushes the file to the currency-file github repo.

The S3 file is published to http://currency.prebid.org/latest.json. The github file is hosted at https://cdn.jsdelivr.net/gh/prebid/currency-file@1/latest.json.

Requirements

Install

git clone https://github.com/prebid/currency-file-generator.git
cd currency-file-generator
(cd generator; npm install)

Test

(cd generator; npm test)

Deploy (to beta stack)

sam build &&  sam deploy

The beta stack updates different files:

Deploy (to prod)

Once you are satisfied with your testing in beta, deploy to prod with

sam build --config-env prod && sam deploy --config-env prod