Follow steps 1-5 of the Obyte Web Integration Tutorial to create basic Node js app with Pug and Bootstrap.
If you want to create Sub-Menu structure, please follow Sub Menus tutorial.
Copy one of the existing files in the views folder creating a new file, e.g. newPage.pug
Modify contain of this new file as required.
Copy one of the existing files in the routes folder, creating a new file, e.g. newPage.js. Modify res.render command as follows:
res.render('tutorials/newPage', { title: 'New Page' });Add the new menu option to the views/menu.pugfile. For top level menu, add:
li.nav-item a.nav-link.text-dark(href="newPage")= "New Page"
Or for the Sub Menu, add:
a.dropdown-item(href="newPage")="New Page"
Finally add the following commands to the app.js file:
const newPage = require('../routes/newPage');
...
app.use('/newPage', newPage);And test.