ABAP,Java, nodejs和go语言的web server编程
ABAP and Java
see my blog).
nodejs
用nodejs现成的express module,几行代码就能写个server出来:
var express = require('express'); var routesEngine = require('./jerryapp/routes/index.js'); // index.js actually http://www.ruanyifeng.com/blog/2015/05/require.html var app = express(); app.use('/ui5', express.static(process.cwd() + '/webapp')); app.use('/v', express.static(process.cwd() + '/vue')); app.use('/map', express.static(process.cwd() + '/map')); app.use('/tile', express.static(process.cwd() + '/tileStudy')); app.use('/a2', express.static(process.cwd() + '/a2')); routesEngine(app); app.listen(process.env.PORT || 3000, function () { console.log('Listening on port, process.cwd(): ' + process.cwd() ); });
go
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
相关推荐
liuxudong00 2020-11-19
wwzaqw 2020-11-11
lihaoxiang 2020-11-05
CrossingX 2020-11-04
xuegangic 2020-10-17
86417413 2020-11-25
83206733 2020-11-19
86276537 2020-11-19
83266337 2020-11-19
86256434 2020-11-17
zhouboxiao 2020-11-16
rise 2020-11-22
sssdssxss 2020-11-20
windle 2020-11-10
孙雪峰 2020-10-30
85477104 2020-11-17
xfcyhades 2020-11-20
cheidou 2020-11-19