npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

solomon-v3-stories

v1.15.5

Published

## Mailchimp Integration Testing ### Testing In Preview To test the end-to-end integration of API & Mailchimp you should deploy to preview and point your demo/preview Solomon app to the preview stories api. - On your WIP branch find and replace `solomon-v

Downloads

9

Readme

Solomon V3 Stories

Mailchimp Integration Testing

Testing In Preview

To test the end-to-end integration of API & Mailchimp you should deploy to preview and point your demo/preview Solomon app to the preview stories api.

  • On your WIP branch find and replace solomon-v3-stories:latest in package.json with solomon-v3-stories:preview & save the file.
  • When you're ready to test run npm run dockerBuildAndDeploy
  • Change the config for the app you're going to test e.g. solomon-v3-demo
    • update solomonStoriesApi.host to https://solomon-v3-stories-preview.azurewebsites.net/api
    • make sure modules.mailchimp.enabled: true
  • restart the preview api on azure portal & test using your preview site

Testing mailchimp integration locally

It is VERY difficult to test locally. As well as the incomplete steps below, the redirect url in the mailchimp account where the application is registered (Main Solomon) needs to exactly match the redirect url passed (ngrok in this case) You also need to make sure you're mapping/forcing the correct host database & config database

HTTP Forwarding your stories api so Mailchimp can access

run ngrok forwarding port 3000 cd FOLDER_CONTAINING_NGROK ./ngrok http 3000 take the resulting http address and enter it into your local solomon-v3-ui environment file under APP.solomonConfig.apis.solomonStoriesApi.host e.g.

solomonStoriesApi: {
  host: 'https://c4f8-81-104-239-27.ngrok.io/api'
}

Stories API env setup

  • Make sure .env in this stories api repo has the HOSTNAME_OVERRIDE set e.g. HOSTNAME_OVERRIDE=v3.mysolomon.co.uk matches V3 api server used in solomonApi in v3-ui environment.js e.g.
apis: {
  solomonApi: {
    host: 'https://solomon-v3-api-demo.azurewebsites.net'
  }
}

USING A TEST MAILCHIMP APP

  • in .env make sure to use a testing mailchimp app's client id & secret. If you were to try test locally using the live main solomon mailchimp app's credentials you would have to edit that to redirect to your ngrok address - affecting all live use. So you need to create a testing app. We have one under the development account for [email protected].

Add the ngrok address as the Redirect URI in the mailchimp app settings

Go to the testing mailchimp account's app settings and enter the Redirect Uri to your newly created ngrok address plus /api/mailchimp/callback e.g. http://1b8d-188-28-168-239.ngrok.io/api/mailchimp/callback

Add ngrok redirect url to stories api .env

In stories api /env file set MAILCHIMP_REDIRECT_URL to the same ngrok address as you used in the previous step on the mailchimp app settings http://1b8d-188-28-168-239.ngrok.io/api/mailchimp/callback

V3 UI Env setup

Make sure to enable mailchimp module in your locally served ui app...

modules: {
  mailchimp: {
    enabled: true,
  }
}

...in the environment.js ember s from local v3-ui

You should now be able to use the mailchimp functionality locally and debug in to all aspects in your locally serving V3 Stories API