JSX wrapper for express web application server.
import "express.jsx";
class _Main {
static function main(argv : string[]) : void
{
var app = express.create();
app.get('/', function (req : Request, res : Response) : void {
res.send('hello world');
});
app.listen(3000);
}
}
$ npm install express --save
$ npm install express.jsx --save
Add express.jsx's lib
folder to search path.
Almost all APIs are same as origin API (http://expressjs.com/api.html).
Only express()
has different API:
-
express.create()
Creates
Application
object.
- Repository: [email protected]:shibukawa/express.jsx.git
- Issues: https://github.com/shibukawa/express.jsx.git/issues
$ grunt test
# Generate API reference
$ grunt doc
# Build application or library for JS project
$ grunt build
- shibukawa / [email protected]
MIT
Complete license is written in LICENSE.md
.