Skip to content

j-barata/marketbasket-sbp-sample

Repository files navigation

CircleCI Heroku GitHub

Market Basket SBP Sample project

A dummy project to test the SBP library.

Content

This repository contains many Maven modules:

  • market.basket.sbp.sample.api which provides a set of interfaces used by the application. Each plugin provides its own implementation of these interfaces.
  • market.basket.sbp.sample.application which provides the spring boot application.
  • market.basket.sbp.sample.frontend.app which provides the react application.
  • market.basket.sbp.sample.frontend.plugins.* which provides several plugins embedding a set of js components.
  • market.basket.sbp.sample.plugins.* which provides several plugins embedding a set of specific features: controller, image resource.

Market Basket Plugins

How to

Build and Run

  • git clone https://github.com/j-barata/marketbasket-sbp-sample.git
  • cd marketbasket-sbp-sample
  • mvn clean package
  • java -jar application/target/market.basket.sbp.sample.application-1.0.0-SNAPSHOT-standalone.jar

The application should now be available from http://localhost:8090

Use

Through the Restful services
  • List the plugins ids: GET http://localhost:8090/plugins/id
  • List the plugins names: GET http://localhost:8090/plugins/list
  • List the plugins resources: GET http://localhost:8090/plugins/resources
  • List the plugins content: GET http://localhost:8090/plugins/basket
  • Get the application specific resource: GET http://localhost:8090/logo.png
  • For each plugin (example given for 'pears' plugin):
    • Call the pears specific controller: GET http://localhost:8090/pears/name
    • Get the pears specific resource: GET http://localhost:8090/pears/pear.png
Through the React application

Market Basket Screenshot

Useful links

About

A dummy project to test the SBP library.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages