Giter Club home page Giter Club logo

canonicalwebteam.store-base's Introduction

Canonical Webteam Store-base

About

This is the base application for all stores. Each store is registered as a blueprint when the app is initialized, other configs and blueprints that are store-specific are also registered on the app. This allows for uniformity of certain endpoints and functionalities across all stores and also allows for extension and customization of endpoints and features that are store specific. See Usage section for example.

How to Install

To install this extension as a requirement in your project, you can use PIP: pip install canonicalwebteam.store-base

Development

The package leverages poetry for dependency management.

Testing

All tests can be run with poetry run python3 -m unittest discover tests.

Note: You might have to do poetry install before running the command above.

Usage

from canonicalwebteam.store_base.app import create_app

import store-specific blueprint
import store-specific utility processor

app = create_app(
    "app_name",
    store_bp=store-specific blueprint,
    utility_processor=store-specific utility_processor,
)

app.static_folder=app_static_folder
app.template_folder=app_template_folder
app.static_url_path=app_static_url_path

all other store blueprints and configurations should be registered here

canonicalwebteam.store-base's People

Contributors

codeempress1 avatar lukewh avatar steverydz avatar

Watchers

James Cloos avatar José Tapadas Alves avatar Peter Balazs Polgar avatar  avatar Martin Storey avatar Giulia Zanchi avatar Ana Badolato avatar MariaPaula Trujillo avatar Amy Pattanasethanon avatar Andreu avatar  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.