Select Git revision
server.js 564 B
// sample barebones node.js server with express.js middleware
// see https://git-bioimage.coe.drexel.edu/opensource/leverjs/-/blob/master/server.js for more detailed example
var express = require('express')
var serveStatic = require('serve-static')
var app = express()
// RESTFUL entry point
app.get('/hello',function(req,res) {
res.send('hello yourself!')
})
// static page from public folder
app.use(express.static('public'))
// this starts the server
app.listen(3000, function () {
console.log('wics sample server: listening on port 3000!');
})