I am developing an application using nodejs and the Express framework. I want to add Bootstrap to my project in local mode. I added this to my index (having already downloaded Bootstrap)
<script language = "javascript" src = "- / node_modules / bootstrap / dist / js / bootstrap.min.js"> </ script>
<link rel = "stylesheet" href = "./ node_modules / bootstrap / dist / css / bootstrap.min.css" />
I discovered that I have to add this code to my app.js
app.use (express.static (__ dirname + '../node_modules/bootstrap/dist'));
but it does not work either (I have the Bootstrap path in mind and I use '../ modules ...' too. Does anyone know how I can use it or have an example?