welder-app is a basic template based off the architect and express
- Static Files
- Middlewares
- Request Parsers
addStatic(mount,dir,listDirAlso)
- mount : is the Web Directory
- dir : is the Server Directory
- listDirAlso : is to provide directory listings
addMiddleWare:function(fn)
- fn(http) : provides the http object
addRequestParser:function(fn)
- fn(http) : provides the http object
http
the http object is a pre-setup express objects
- app : provides direct access to the express app
- server : provides direct access to the http server
- express : provides direct access to the express object
- listen : used by welder internaly function(port,ip,callback) but can be used to listen on another port
Express is setup to compress all output.
bodyParser and cookieParser are loaded before middlewares
app.main : Shows how to add a RequestParser and architect plugin
app.session : Shows how to add a Middleware and architect plugin with plugin dependency
db.mongoose : Shows how to add a General architect plugin
the relates to the package.js file
As you can see the version of your app should be in a fourm of "X.Y.Z"
and X if the welder version so you can always know what version of welder you have
and Y is release version
and Z is sub-release version
{
"name": "welder-app",
"version": "1.1.32",
"dependencies": {
"express": "*",
"architect": "*",
"mongoose": "*"
}
}