Skip to content
/ modular-site.js Public template

modular boiler-plate site built using node.js and express

License

Notifications You must be signed in to change notification settings

jolatechno/modular-site.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

modular-site.js

modular boiler-plate site built using node.js and express

initialization

use npm install package.json in the /src directory.

usage

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.

About

modular boiler-plate site built using node.js and express

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published