This is the file structure of my website:
for some reason, when I add the script to my index.html:
<script type="text/javascript" src="script.js"></script>
or
<script type="text/javascript" src="./script.js"></script>
it returns a 404 not found error. It must be something trivial I am missing here.
The error in chrome console looks like this
GET http://127.0.0.1:5000/script.js net::ERR_ABORTED 404 (NOT FOUND)
index.html and script.js as you can see are in the same folder, the strange part to me is when I double click on the file directly, it loads up fine:
file:///Users/.../matchik/templates/index.html loads fine