Skip to content

Commit

Permalink
Add Hack on Nitrous Button
Browse files Browse the repository at this point in the history
  • Loading branch information
arunthampi committed Apr 16, 2014
1 parent b0ca209 commit 51541a3
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ tags
/djangotoolbox
/pyactiveresource
/shopify
*.sqlite3
*.sqlite3
py27env
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ partner.
When you create your app in the Shopify Partner Account, set the
return URL to "http://localhost:8000/login".

Developing on Nitrous.IO
------------------------

Start hacking on this app on [Nitrous.IO](https://www.nitrous.io/?utm_source=github.com&utm_campaign=shopify_django_app&utm_medium=hackonnitrous) in seconds:

[![Hack shopify/shopify_django_app on
Nitrous.IO](https://d3o0mnbgv6k92a.cloudfront.net/assets/hack-l-v1-3cc067e71372f6045e1949af9d96095b.png)](https://www.nitrous.io/hack_button?source=embed&runtime=django&repo=shopify%2Fshopify_django_app&file_to_open=README.nitrous.md)


Regular Django Application
--------------------------

Expand Down
28 changes: 28 additions & 0 deletions README.nitrous.md
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"


6 changes: 6 additions & 0 deletions script/server
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
7 changes: 7 additions & 0 deletions script/setup
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

0 comments on commit 51541a3

Please sign in to comment.