Skip to main content

Surgefactory notes

Context:

  • Surgefactory was a brand that Ben + Josh made before POWr.

  • 2 Apps were launched on the Wix App market that still have users: "Instant Resume" and "Video Gallery".

  • There is a separate PHP server that hosts these apps. The way the logic is currently set up, requests to these old apps or the current Job Board app in Wix are first directed to this PHP server. If it can find an app in the DB, it renders it. If it can't find the app, then it essentially redirects to the relevant POWr App.

  • The redirects occur in the following files on the PHP server:

    • videoGallery/videoGallerySettings.php, cv/cvSettings.php => these are straightforward redirects for the settings
    • videoGallery/videoGallery.php, cv/cv.php => a redirect prevented the wix SDK from working correctly, so these put an iframe on the page with the redirect, and then listen for events and post them to the wix SDK.
  • The code for the PHP server is https://github.com/benross/surgefactory and it is hosted on Rackspace

  • The above flow is not ideal, because it means all new POWr users on these apps have an extra request to the PHP server. The ideal case would be to pull the list of apps in the PHP server (since no new apps should be being created) and have that inserted into the POWr Server. Then we change the endpoints to go to the POWr Server FIRST so it can serve new apps, and then if necessary do the redirect to PHP server (or even better, migrate the apps entirely over to the POWr server and remove PHP server entirely).