0.7.6 • Published 7 years ago

br-server v0.7.6

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

br-server

Backend database and API for Bristol Rowing clubs website with mongoose/mongo and websockets(socketio) in typescript.

status : In Development

Prerequisites

  1. Node (v6.x)
  2. MongoDB (run mongo as a service)

Branch/Release Structure

----+ stable        - versioned release branch                  (auto-deploy to ......)
--+ hotfix x        - for production fixes
+master             - feature complete development branch
--+ development     - multi-feature staging branch              (auto-deploy to ......)
----+ feature x     - feature specific development branches

Getting Started

To get started create a new branch off of development. Naming convention feature-x e.g.;

feature-useradd

After development merge back into development then remove the feature branch.

##Source Tree at a glance.

+
|----+ source
     |-----+ application          # application specific code
           |-----+ components     # the indivdual components that make up the application e.g. "user"
           |-----+ core           # the core interfaces that are implemented and extended in the components
           |-----+ mongoose       # implementation of the Repository interface and Query mapping.
           |-----+ socketio       # implementation of the Server interface and Request interface.
     |-----+ utils                # generic functions non-specific to the application          
|-- gulpfile.js                   # clean, build, run, test tasks.
|-- tsconfig.json                 # configuration for Typescript build.

How it hangs together

	Request -> Component <-> Service (<-> Validation) <-> Repository 
	   \           \              |             /             /
	    \---------------------- Model -----------------------/

A request is routed to a component method, which in turn calls a service method which is where any business logic occurs.

The Service then calls the repository to perform storage operations. They all pass around the same core Model object.

Release packages

Each component should export any shared logic e.g;

Server source/application/br-server.ts

export { UserModel } from './model/user.model';
    
export { UserValidation } from './validation/user.validation';

Web

import { UserModel, UserValidation } from 'br-server'
0.7.6

7 years ago

0.7.5

7 years ago

0.7.4

7 years ago

0.7.3

7 years ago

0.7.2

7 years ago

0.7.1

7 years ago

0.7.0

7 years ago

0.6.0

7 years ago

0.5.7

7 years ago

0.5.6

7 years ago

0.5.4

7 years ago

0.5.3

7 years ago

0.5.2

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.3.6

7 years ago

0.3.5

7 years ago

0.3.4

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1-alpha4

7 years ago

0.0.1-alpha3

7 years ago

0.0.1-alpha2

7 years ago

0.0.1-alpha1

7 years ago

0.0.1

7 years ago