Skip to content

peasy/peasy-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

peasy-js

A middle tier framework for javascript

#What's a middle tier framework?

A middle tier framework is code that facilitates creating business logic in a reusable, extensible, maintainable, and testable manner. It promotes creating business logic that is completely decoupled from its consuming technologies and helps to ensure that separation of concerns (SoC) are adhered to.

#####peasy-js offers/addresses the following:

#Why peasy-js?

Because the javascript ecosystem changes at a pace much more rapid than your business logic. UI frameworks change: Backbone one day, Angular the next day, React the following... Backend frameworks change: Express one day, Koa the next day, Hapi the next... Data frameworks and ORMS change...

Why couple your code with technologies that are hot today and gone tomorrow? Why not focus on your business logic and abstract out everything else into truly reusable code that can be consumed by javascript in the browser, backend, or both, and by any UI or backend framework?

peasy-js makes it trivial to whimsically swap out UI, backend, and data frameworks in your applications by creating your business logic in a composable, reusable, scalable, and testable manner.

#Where can I get it?

  • Download the latest release.
  • Clone the repo: git clone https://github.com/peasy/peasy-js.git.
  • Install with npm: npm install peasy-js.
  • Install with bower: bower install peasy-js.

You can also download and add the peasy.js file to your project and reference it accordingly.

#Getting started

You can get started by reviewing the walk throughs below.

An additional sample can be viewed here that showcases creating a business service, custom command, business rules, and wiring them up. The sample also showcases how to consume the service. To see it in action, run: node src/sample.js from a command line.

An entire middle-tier implementation using peasy-js can be viewed here. This sample application is a ficticious order entry / inventory management system web api.

For additional help, be sure to checkout the wiki as it covers in-depth how-to's, general framework design, and usage scenarios.

#Contributing

All contributions are welcome, from general framework improvements to sample client consumers, proxy implementations, and documentation updates. Want to get involved? Please hit us up with your ideas. Alternatively, you can make a pull request and we'll get to it ASAP.

#Like what you see?

Please consider showing your support by starring the project.