High-level requirements
As we did earlier, we are going to create a list of requirements that we'll turn into sprints. We'll then create topic branches for each sprint. Finally, we'll merge our code into the master
branch once we're satisfied that we've met all the requirements and that all of the tests have passed. For this chapter, our requirements are as following:
Support multiple accounts
Authorize user access to data
Verify requests from Shopify
Install from the Shopify App Store
Subscribe to and process Shopify Webhooks
Supporting multiple accounts
We'll need to update our Account
model by adding a few more columns to store additional information from Shopify. We'll also remove the shopify_shared_secret
and shopify_api_key
columns and store the values in global variables. As can be inferred from the name, this secret will be used whenever we need to make an API request or verify an incoming request from Shopify.
As usual, we'll make a topic branch for our work with the following command:
...