UNPKG
@incodelang/templates
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
Server for storing templates
@incodelang/templates
/
src
/
module
/
sampleApp.js
11 lines
(10 loc)
•
283 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
/** *
@author
Ben Siebert <ben
@mctzock
.de> *
@copyright
(c) 2018-2021 Ben Siebert. All rights reserved. */
const
express =
require
(
'express'
);
const
app =
express
();
module
.
exports
=
function
(
port =
3000
, host =
"0.0.0.0"
) { app.
listen
(port, host)
return
app; }