Nodejs web,db,hosting
- 3. EXPRESS WEB FRAMEWORK
• Insanely fast (and small)
• server-side JavaScript web development framework
• built on
• [node](http://nodejs.org)
• [Connect](http://github.com/senchalabs/connect)
- 4. var app = express.createServer();
app.get('/', function(req, res){
res.send('Hello World');
});
app.listen(3000);
- 9. FEATURES
* Robust routing
* Redirection helpers
* Dynamic view helpers
* Content negotiation
* Focus on high performance
* View rendering and partials support
- 10. FEATURES
* Environment based configuration
* Session based flash notifications
* Built on [Connect](http://github.com/senchalabs/connect)
* High test coverage
* Executable for generating applications quickly
* Application level view options
- 11. FEATURES
VIA CONNECT
* Session support
* Cache API
* Mime helpers
* ETag support
* Persistent flash notifications
* Cookie support
* JSON-RPC
* Logging
* and _much_ more!
- 17. • Windows xp DEMO
• http://devcenter.heroku.com/categories/node-js
• foreman .net framework v4.0.30319
• http://msdn.microsoft.com/en-us/netframework/
aa569263.aspx
- 20. nodepad mysqltest.js
var db = require("mysql-native").createTCPClient();
db.auto_prepare = true;
function dump_rows(cmd)
{
cmd.addListener('row', function(r) { console.dir(r); } );
}
db.auth("nodesample", "nodeuser", "password");
dump_rows(db.query("select 1+1,2,3,'4',length('hello')"));
dump_rows(db.execute("select 1+1,2,3,'4',length(?)", ["hello"]));
db.close();
- 21. • MySql protocol documentation:
• http://forge.mysql.com/wiki/
MySQL_Internals_ClientServer_Protocol
• Other node.js mysql clients:
• http://github.com/felixge/node-mysql
• http://github.com/Sannis/node-mysql-libmysqlclient
• http://github.com/Guille/node.dbslayer.js
- 22. REFERENCES
• Node Guide 번역
• http://nodeguide.atelier.weaveus.com/
• Node.js 호스팅
• http://inspiredjw.tistory.com/2
• Node.js 기술 요약 정리
• http://www.webresourcesdepot.com/the-awesome-node-js-and-its-gang/
Editor's Notes
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n