vite.js
Version:
The simplest way to bootstrap a nodejs server and dive straight into coding.
22 lines (20 loc) • 447 B
JavaScript
const ViteJS = require("./index");
const { app } = 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.get("/test", function(req, res) {
res.send("ViteJS launched successfully");
});