Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 1.15 KB

README.md

File metadata and controls

17 lines (9 loc) · 1.15 KB

Customer points demo (subscription handler)

Installation

  1. After cloning the repo run yarn install in subscription and in Deploy/server run yarn install again.

  2. Create a .env file in root of the project (.env.local does not work!) with the content of an admin api key generated in mc center (export as Sunrise SPA)

  3. Run yarn build in the subscription directory

  4. Follow the deploy instructions to deploy this code on cloud run.

  5. Create a Google pub sub topic and create a subscription, make it a push subscription and use the url of the published cloud run project.

  6. Use the subscription.json create a subscription on the api playground (use it as payload) make sure you change the topic to the one you created in step 5.

  7. Use the customerPointsType.json to create a type on the api playground (use it as payload).