vite.js
Version:
The simplest way to bootstrap a nodejs server and dive straight into coding.
23 lines (20 loc) • 462 B
JavaScript
;
var ViteJS = require("./index");
var _ref = new ViteJS({
name: "test",
port: 8080,
expressLog: true,
internalLog: false,
mongo: "mongodb://localhost:27017/",
viewsDir: __dirname + "/views",
publicDir: __dirname + "/public",
forceNulldb: true,
routes: [{
url: "/api",
router: require("./test/routes/api")
}]
}),
app = _ref.app;
app.get("/test", function (req, res) {
res.send("ViteJS launched successfully");
});