Skip to content

vcint/dashboard

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https://toptrove-dash1.onrender.com/

Tips before starting the server

run this in command line:

npm i bcrypt express cors dotenv express-session mysql2 path

to run the server:

node index.js or nodemon index.js or npm start

things to note for developers:

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'});
});

.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 50.8%
  • HTML 38.7%
  • SCSS 6.1%
  • JavaScript 4.4%