Code Monkey home page Code Monkey logo

shopify_django_app's Introduction

Shopify Django App Example

This project makes it easy to get a Shopify app up and running with Django and the Python Shopify API.

This project simply displays basic information about the shop's products and orders.

This project has the following structure

  • shopify_app an app which handles authentication (meant to be reusable)
  • home an app which contains the example code to demonstrate how to use the API (meant to be modified or replaced to create your Shopify App).
  • shopify_django_app project files for serving this app.

Get It Running

Create Your App Configuration

You will then have access to your API key and API secret KEY, you will need these for the next steps.

Setup Environment

  1. Create a .env file in the root of your project and add to it the following contents
SHOPIFY_API_KEY=[your api key]
SHOPIFY_API_SECRET=[your api secret]
  1. Generate a secret key and add it to .env by running the following in the command line: printf 'DJANGO_SECRET=' >> .env; python -c 'import random; print("".join([random.choice("abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)") for i in range(50)]))' >> .env

Run the App

Run the following commands in the repo. We use pipenv to get running faster

  • create a .env file in the root directory of this app
  • Add to it
SHOPIFY_API_KEY=[your api_key]
SHOPIFY_API_SECRET=[your api_secret]
DJANGO_SECRET="a secret string that only you know"
  • run the app
pipenv install
pipenv run python manage.py runserver

You may get warnings about migrations, but they should not stop you.

Open http://localhost:8000 in your browser to view the example.

shopify_django_app's People

Contributors

5p3c7r3 avatar adewinter avatar arunthampi avatar dylanahsmith avatar granteagon avatar joereis avatar n8yeung avatar richter-alex avatar shivanshinamdar avatar titanous avatar tmlayton avatar tobi avatar yaworsk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.