modular boiler-plate site built using node.js and express
use npm install package.json
in the /src directory.
Views are located in the src/views-js/main.js file with the following format:
{
position:"lower" or "upper",
link: "/link",
label: "Name",
logginRequire: false, true, or undefined
get: links => function (req, res) {
//view function
}
},
position describe if the link is in the top or lower navbar,
if logginRequire is true
, the view can only be accessed if the user is logged in, if false
, it can can only be accessed if the user is not logged in, if undefined
it can be accessed in both case.
Helper functions are located in the src/views-js/modules/functions.js file.
Imports are located in the src/views-js/modules/library.js file.
Constants are located in the src/views-js/modules/constants.json file.
ejs views are located in the src/views folder.