Skip to content

Repository files navigation

NodeJS Mock publisher webhooks template

How to run manually (node & npm required)

KEY='[KEY GOES HERE]' FACEBOOK_APP_SECRET='[FACEBOOK APP SECRET GOES HERE]' APPLE_SECRET_API='[APPLE SECRET API GOES HERE]' OFFERS_FILE_PATH='[OFFERS FILE PATH GOES HERE]' PLAYER_DATASET_FILE_PATH='[PLAYER DATASET FILE PATH GOES HERE]' npm start

How to build docker image

docker build -t appcharge/server .

How to run the container locally

docker run --rm -it -e KEY='[KEY GOES HERE]' -e FACEBOOK_APP_SECRET='[FACEBOOK APP SECRET GOES HERE]' -e APPLE_SECRET_API='[APPLE SECRET API GOES HERE]' -e OFFERS_FILE_PATH=db/offers.json -e PLAYER_DATASET_FILE_PATH=db/player-dataset.json -p8080:8080 appcharge/server

Where to get the key

Go to the admin panel, open the integration tab, if you are using signature authentication - copy the key from the primary key field, if you are using encryption, take the key from the primary key field and the IV from the secondary key field.

About

appcharge-agent-node-public repository

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages