Startup
Last updated
Was this helpful?
Was this helpful?
new SpringJS({
name: "test",
port: 8080
});new SpringJS({
name: "test",
port: 8080,
log: true
});new SpringJS({
name: "test",
port: 8080,
log: true,
mongo: "mongodb://localhost:27017/"
});new SpringJS({
name: "test",
port: 8080,
log: true,
routes: [
{
url:'/api',
router: require('./api.js')
},
{
url:'/api2',
router: require('./api2.js')
}
],
mongo: "mongodb://localhost:27017/"
});new SpringJS({
name: "test",
port: 8080,
log: true,
mongo: "mongodb://localhost:27017/",
viewsDir: "./test/views"
});new SpringJS({
name: "test",
port: 8080,
log: true,
mongo: "mongodb://localhost:27017/",
viewsDir: "./test/views",
publicDir: "./test/public"
});