Giter Site home page Giter Site logo

lulzzz / cbe Goto Github PK

View Code? Open in Web Editor NEW

This project forked from semprini/cbe

0.0 2.0 0.0 833 KB

Common Business Entities - Persistence, Schema, API

License: Apache License 2.0

PowerShell 81.65% Batchfile 0.92% Groovy 0.04% Python 17.28% HTML 0.11%

cbe's Introduction

Common Business Entities (CBE)

Licence GitHub version Build Status Coverage Status

CBE provides RESTful CRUD and administration for common business entities persisted on a relational DB. The rationale is discussed in the Wiki

The CBE projects goal is to provide a generic schema/API/persistence layer which can be used for all the common functions in an enterprise and extended for each industry/business. CBE can be used to underpin microservice, SOA, EDA or MDM architecture.

Industry Specific Extension Projects

Sources: TM Fourum SID (Telco), IBM IFW (Finance/Banking), IAA (Insurance)

To run

git clone https://github.com/Semprini/cbe.git
cd cbe
pip install -r requirements.txt
python manage.py migrate (will use a default sqllite db)
python manage.py createsuperuser <username> <email> <password>
python manage.py runserver
browse to http://localhost:8000/admin for the admin interface
browse to http://localhost:8000/api for the api interface

How is this different to an API from a product?

The API/Persistence/Admin uses techniques like generic foreign keys to express relationships that provide consistent schema for use in multiple contexts. A product will rightly store data for it's own purpose and we then use architectures like SOA to expose and adjust the semantics for different contexts. The CBE persistence layer has pointers to abstract classes which provides a faithful realization of the data model rather than through a transformation layer.

Entity Domains:

  • Party - Entities relating to individuals, organizations, how to contact them and the roles they play
  • Location - Entities for addresses and places
  • Business interaction - Entities for how parties interact in the business
  • Customer - The parties that a business sells products or services to
  • Trouble - Tracking problems and issues

Coming soon to a data model near you:

  • More roles for PartyRole and BusinessInteraction
  • Product

The data model is designed to be extended for each industry. In Party, the PartyRole class is the main abstract entity from which concrete classes like Customer or Supplier should be derived.

Check the Wiki for more info. The data model is held in the Docs folder as a Sparx EA model

Virtual Desktop Environment

To use a virtual environment requires VirtualBox and Vagrant, from the workspace run:

vagrant up

Direct PowerShell Access

To access the buildserver using native remote PowerShell. Allow credential delegation, on-off step needed on the host when using VirtualBox/Vagrant.

./automation/provisioning/runner.bat CredSSP.ps1 client

Once delegation configured, the build emulation can be executed.

$securePassword = ConvertTo-SecureString 'vagrant' -asplaintext -force
$cred = New-Object System.Management.Automation.PSCredential ('vagrant', $securePassword)
enter-pssession 127.0.0.1 -port 15985 -Auth CredSSP -credential $cred
cd C:\vagrant
.\automation\cdEmulate.bat

Make your own fork

git clone https://github.com/cdaf/cbe.git
cd cbe
git remote add upstream https://github.com/Semprini/cbe.git

Once established, use the following to synchronise

git fetch upstream
git pull upstream master

cbe's People

Contributors

cdaf avatar semprini avatar

Watchers

 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.