Coder Social home page Coder Social logo

hello-world-app-python-flask's Introduction

Bigcommerce Sample App: Hello World in Python and Flask

A sample Flask app which demonstrates using the Bigcommerce API as an integrated app within the Bigcommerce control panel.

Getting Started

Local set-up

First, clone the repository and set up the Python dependencies:

git clone [email protected]:bigcommerce-labs/integrated-apps-python-flask-example.git
cd integrated-apps-python-flask-example/

# If you want to use virtualenv
virtualenv ENV/ --python=python2.7
source ENV/bin/activate

# Install dependencies (Flask, bigcommerce-api) through pip
pip install -r requirements.txt

cp config.default.py config.py

Create application tokens

Head to the Bigcommerce developer portal and sign in/create a developer account.

Create an draft app on the 'My Apps' page. You'll be able to skip most of the set-up for now except for the Technical page.

Recommended values are shown below:

Sample settings

Finally, take your client id and secret from the apps dashboard and place them in config.py.

Installing and running

To start your application server, simply run

python app.py

To test out your application, head to the control panel of a store which you own.

Your app should be available to install from the 'My Drafts' section of the App Store.

Caveats

  • The simple flask server does not use HTTPS, which means some browsers (such as recent versions of Firefox) may block your application iframe.

hello-world-app-python-flask's People

Watchers

Tim Sergeant 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.