-
Notifications
You must be signed in to change notification settings - Fork 1
Environment Setup
- Python (2.4~2.5)
- Git
- A web browser
- Tunes
The following is a guide to help you setup your development environment.
-
Download Google App Engine: Google App Engine for Python
-
Git clone the repo willet_referrals:
git clone --recursive git@github.com:Willet/Willet-Referrals.git- Make sure you also download all git submodules:
git submodule update --init - Then, run this command to ensure that feature branches stay as separate branches
git config branch.master.mergeoptions "--no-ff"git config branch.dev.mergeoptions "--no-ff"
- Make sure you also download all git submodules:
-
Create and checkout your own personal branch! Name it something cool, like, "My awesome willet branch!"
-
Create an app.yaml using our template: sample app.yaml
-
Create an util/local_consts.py using our template: sample util/local_consts.py
-
Maybe, create custom apps for Twitter, Facebook, etc. Add API keys/secrets to your util/local_consts.py
-
Create the required Shopify Apps for testing, add keys/secrets to your util/local_consts.py
-
(Optional) Create a cron.yaml using our template, will burn your quota daily: sample cron.yaml
-
Install dev SDK on your machine.
-
Create a Google App Engine account.
-
Create a new Application so that you can deploy and test! Remember what you name your app.
-
Init your App Engine Launcher (that you dl/ed) to your git repo directory. Put your app name in the app.yaml file (as described above).
-
Register as a [Shopify Developer / Partner] (http://www.shopify.com/partners/apps).
-
Make a suh-weeet test store! What do you want to sell? Barbara's is here.
-
Make a Shopify App so you can test!
Select Legacy authentication, not OAuth2.
Post Install Behaviour = Redirect to url. URL is http://app-engine-name.appspot.com/a/shopify?app=SIBTShopify or http://app-engine-name.appspot.com/a/shopify?app=buttons That's all you have to edit!
- Copy the API Key and Shared Secret to your util/local_consts.py file (as described above).
After you've done all the setup above, you're ready to deploy your code and start testing!
-
Switch to stable branch.
-
Using your launcher, deploy your code to your application. Hit http://app-name.appspot.com/ to see our amazing landing page!
-
Go to /link/init to init your DB.
-
To install our Shopify App on your test store, go to /s/shopify/beta and follow install instructions.