Skip to content
Myr

New doc files

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent 631ef3e · Browse files · 2 files+97 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+97 added−0 removed

  • other:+97 added−0 removed

2 files+97 added−0 removed

added:History+4 added
12=== 0.0.1 / YYYY-MM-DD34* Initial release
added:Readme+93 added
12= Express34 Insanely fast (and small) server-side JavaScript web development framework5 built on node.js and the V8 JavaScript engine.67 * Stay tuned, coming soon :)89== Features (so far)1011 * Sexy DSL12 * Mime helpers13 * Nested parameter parsing14 * Full test coverage15 * Test helpers (mock requests etc)16 * Cookie support17 * Session support18 * Faux method support for RESTful apps19 * Extendable using Express 'Modules'20 * Static file serving21 * Non polluting so you can use it with your fav JavaScript libraries :)22 * Routing23 * string matching 24 * regexp with captures 25 * param key substitution26 * pre-conditions27 * overidding28 * etc2930== Coming Soon3132 * View templating system33 * Jack integration3435== Examples3637 // GET /user/tj/edit38 39 get('user/:name/:operation', function(){40 param('operation') + 'ing ' + param('name')41 })4243 // GET /articles44 45 get('articles', function(){46 'list of articles'47 })4849 // GET /articles/1250 51 get(/articles\/(\d+)/, function(){52 'article id ' + captures[1]53 })54 55 // POST /user/:id56 57 post('user/:id', function(){58 User.destroy(params('id')) ? 59 'User deleted' :60 'Failed to delete user'61 })62 63== Headers6465 get ('foo', function(){66 header('Content-Type', 'text/html')67 '<p>bar</p>'68 })6970== License 7172(The MIT License)7374Copyright (c) 2009 TJ Holowaychuk <tj@vision-media.ca>7576Permission is hereby granted, free of charge, to any person obtaining77a copy of this software and associated documentation files (the78'Software'), to deal in the Software without restriction, including79without limitation the rights to use, copy, modify, merge, publish,80distribute, sublicense, and/or sell copies of the Software, and to81permit persons to whom the Software is furnished to do so, subject to82the following conditions:8384The above copyright notice and this permission notice shall be85included in all copies or substantial portions of the Software.8687THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,88EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF89MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.90IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY91CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,92TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE93SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.