https://toptrove-dash1.onrender.com/
npm i bcrypt express cors dotenv express-session mysql2 path
node index.js or nodemon index.js or npm start
In further development when a user adds new route ex: dashboard2.html in one of existing pages, it cannot navigate to the new page that is 'dashboard2.html', since there is only navigation which has end points in node js . So therefore add an endpoint in node js using express js, to get this html file rendered for a particular route, ex:
in html:
<a href="/dashboard2">
<span>NEW DASHBOARD</span>
</a>
in node js add this route :
app.get("/dashboard2",(req,res)=>
{
res.sendFile('dashboard2.html',{root:__dirname+'/../client/pages'});
});
.