forked from Shopify/shopify_django_app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b0ca209
commit 51541a3
Showing
5 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,5 @@ tags | |
/djangotoolbox | ||
/pyactiveresource | ||
/shopify | ||
*.sqlite3 | ||
*.sqlite3 | ||
py27env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Start working on the Shopify Django App in a couple of seconds | ||
|
||
If you don't have an API key yet, create a | ||
[Shopify Partner account](http://shopify.com/partners) and create | ||
an app. You can also create test shops once you're logged in as a | ||
partner. | ||
|
||
Get the Key and the secret and set them in your shell like this: | ||
|
||
```shell | ||
export SHOPIFY_API_KEY=XXXXXXXXXXX | ||
export SHOPIFY_API_SECRET=CCCCCCCCCCC | ||
``` | ||
|
||
When you create your app in the Shopify Partner Account, set the | ||
return URL to port 3000 of your box "http://your-box-name.nitrousbox.com:3000/login". | ||
|
||
## Setup | ||
|
||
Run the following commands in the terminal | ||
|
||
1. `cd ~/workspace/shopify_django_app` | ||
2. `./script/setup` | ||
3. `./script/server` | ||
|
||
Go to the "Preview Menu" and click "Port 3000" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
virtualenv -p /usr/bin/python2.7 py27env | ||
source py27env/bin/activate | ||
|
||
python manage.py runserver 0.0.0.0:3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
virtualenv -p /usr/bin/python2.7 py27env | ||
source py27env/bin/activate | ||
|
||
pip install --upgrade Django ShopifyAPI | ||
python manage.py syncdb |