Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tjmehta committed Dec 29, 2014
1 parent a240edf commit e0d77c0
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,30 +27,30 @@ npm test

Granular:

Lint: `npm run lint`
All BDD: `npm run bdd`
Pass additional arguments to BDD: `npm run bdd -- -d`
BDD one file: `npm run bdd -- test/path/to/file.js`
BDD Watch: `npm run bdd-watch`
BDD Watch w/ one test file: `npm run bdd-watch -- test/path/to/file.js`
All Unit: `npm run unit`
Lint: `npm run lint`
All BDD: `npm run bdd`
Pass additional arguments to BDD: `npm run bdd -- -d`
BDD one file: `npm run bdd -- test/path/to/file.js`
BDD Watch: `npm run bdd-watch`
BDD Watch w/ one test file: `npm run bdd-watch -- test/path/to/file.js`
All Unit: `npm run unit`

Opinions
========
#### Restful resource urls
Create - POST - /resources
Read - GET - /resources/:id
Update - PATCH - /resources/:id *PATCH is a partial update, PUT is a full resource update
Delete - DELETE - /resources/:id
Create - POST - /resources
Read - GET - /resources/:id
Update - PATCH - /resources/:id *PATCH is a partial update, PUT is a full resource update
Delete - DELETE - /resources/:id

#### Middleware Patterns
Request Data validation and Middleware Flow Control - [tjmehta/dat-middleware](https://github.com/tjmehta/dat-middleware)
Middleware Flow Control - [tjmehta/middleware-flow](https://github.com/tjmehta/middleware-flow)
Middlewares of models are autogenerated for you
* Mongoose Models - /lib/middlewares/mongo/index.js - [tjmehta/mongooseware](https://github.com/tjmehta/mongooseware)
* Class Models - /lib/middlewares/apis/index.js [tjmehta/middlewarize](https://github.com/tjmehta/middlewarize) *documentation soon
Sharing the request object as a common context between middlewares allows us to make
asyncronous code look syncronous and avoid "callback hell"
Request Data validation and Middleware Flow Control - [tjmehta/dat-middleware](https://github.com/tjmehta/dat-middleware)
Middleware Flow Control - [tjmehta/middleware-flow](https://github.com/tjmehta/middleware-flow)
Middlewares of models are autogenerated for you
* Mongoose Models - /lib/middlewares/mongo/index.js - [tjmehta/mongooseware](https://github.com/tjmehta/mongooseware)
* Class Models - /lib/middlewares/apis/index.js [tjmehta/middlewarize](https://github.com/tjmehta/middlewarize)
Sharing the request object as a common context between middlewares allows us to make
asyncronous code look syncronous and avoid "callback hell"

#### Boom for Http Errors
Nice Http Error library - [spumko/boom](https://github.com/spumko/boom)
Expand Down

0 comments on commit e0d77c0

Please sign in to comment.