Coder Social home page Coder Social logo

grahambrooks / bvira Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 1.0 38.56 MB

Demonstration reference architecture and test example. Bvira is based on the architecture of a social media project I was involved in some years ago.

Java 96.34% Ruby 0.61% Shell 0.50% Scala 0.61% Smalltalk 1.94%

bvira's Introduction

bvira - sample web application

Bvira is a reference/example web application modeled on an extremely successful project. The application architecture exhibited a very clean separation of concerns and overall the project demonstrated how a number of principles and practices contributed to the success of the project.

Build Times

After 3+ months of development the project build and unit test cycle was less that 2 minutes. (Bvira is very primitive by comparison and currently builds and tests in 8 seconds). A short build time meant that developers could concentrate on delivering value through application features.

Self contained source and dependencies

Everything that is required to build and test the application in development is stored under version control. Developers were responsible for adding, updating and removing dependencies from the appropriate lib folder manually. All build tools were also stored in the repository.

This single source of truth meant that new developers could be up and running by installing a JDK and checking out the source repository.

Keeping the dependencies small was everyone's business.

Bvira is missing a persistence capability. The project that inspired bvira used an in-memory hypersonic in development to keep the builds fast.

Some characteristics of Bvira

Requests handling

Requests are handled and routed by a custom servlet to component classes. Each component class handles a number of paths. POST requests are routed to Command classes that accept parameters and then using the Post-Redirect-Get pattern return the URI for the later GET request. Get requests are again routed to a component to a presenter for the requested URI.

Response rendering

Bvira using stringtemplate for content templates. StringTemplate (http://www.stringtemplate.org) has a very clean separation of concerns and by design does not allow any business logic within the template.

Dependency injection

Capabilities like dependency injection are placed behind a facade that only exposes the functionality required by the application. Currently dependency injection is provided by PicoContainer (http://picocontainer.codehaus.org) but because it is behind application classes it can be quite easily replaced as additional requirements are identified.

Bitdeli Badge

bvira's People

Contributors

bitdeli-chef avatar grahambrooks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

vijayeluri

bvira's Issues

Create a new controller and view

As a developer I want a simple command that will create a new view,
and controller for a specific url so I can write my application more
quickly without worrying about wiring code.

Creating a new web application

As a developer I want a simple command that will create all the basic
files for a web application in my chosen technology so I can start
writing functional code more quickly.

Tasks

  • Separate out the core bvira functionality into a core jar for
    distribution
  • Create a command line tool that creates a basic application,
    including the ant script and other ancillary files.
  • Add templates for the required source and test files
  • Create an eclipse project file
  • Create an IntelliJ project file

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.