Skip to content
Aaron Hanusa edited this page Jun 4, 2016 · 42 revisions

peasy-js

###A middle tier framework for javascript

peasy-js is a simple middle tier framework that offers/addresses the following:

#Getting started

You can get started by reviewing the getting started example below.

  • I want to run it in a client (browser)
  • I want to run it on a server (Node.js)

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, just run: node src/sample.js from a command line.

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

#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.

#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.

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

#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.

Clone this wiki locally