Update README.md
This commit is contained in:
parent
3adc862540
commit
3c73b7c11c
1 changed files with 9 additions and 9 deletions
18
README.md
18
README.md
|
@ -1,22 +1,22 @@
|
|||
(WIP)_ Typescript definitions for the [sails.js](https://github.com/balderdashy/sails) web framework.
|
||||
(WIP) Typescript definitions for the [sails.js](https://github.com/balderdashy/sails) web framework.
|
||||
|
||||
|
||||
Overview:
|
||||
**Overview:**
|
||||
|
||||
sails.js is a node.js mvc web framework. The two main pieces of a sails app are the Models, and Controllers. The views can be interchanged between multiple view engines. They aren't sails specific so don't require any type mappings.
|
||||
|
||||
requirements:
|
||||
**Requirements:**
|
||||
|
||||
Requires the express,bluebird, and socket.io type mappings(for now_)
|
||||
Requires the express,bluebird, and socket.io type mappings. Eventually, we'll merge this with definitely typed and use tsd, but for now, just install everything manually.
|
||||
|
||||
|
||||
Controllers:
|
||||
**Controllers:**
|
||||
|
||||
Each controller action is passed two parameters,an express request object, and an express response object. The request and response objects have been extended by the sails framework to add custom functionality. The main controller type definitions are for the extensions to the request and response objects.
|
||||
|
||||
|
||||
|
||||
Models:
|
||||
**Models:**
|
||||
|
||||
A sails Model is a static class with methods like create, update, and find which correspond to operations on the database. These operations return Records.
|
||||
|
||||
|
@ -26,11 +26,11 @@ Records: A record corresponds to a single row in the database.
|
|||
|
||||
|
||||
|
||||
Usage:
|
||||
**Usage:**
|
||||
|
||||
todo, check the tests
|
||||
todo
|
||||
|
||||
|
||||
Mappings:
|
||||
**Mappings:**
|
||||
|
||||
todo, check the code
|
||||
|
|
Loading…
Reference in a new issue