When I start my node-server at port 8080
, and have a look at in the browser, I see this:
I doesn't find any of the bower-files.
When I just preview the code through an editor, like brackets. Everything works. I don't understand why node
would cause a problem.
My last route in node looks like this:
app.get('*', function(req, res){
res.sendFile(path.join(__dirname + '/public/index.html'));
});
My folder structure looks like this:
And my includes in the HTML file looks like this:
<link rel="stylesheet" href="../bower_components/bootstrap/dist/css/bootstrap.css"/>
<style>
html { overflow-y:scroll; }
body { padding-top:50px; }
#todo-list { margin-bottom:30px; }
</style>
<!-- JS Source -->
<script src="../bower_components/jquery/dist/jquery.js"></script>
<script src="../bower_components/angular/angular.js"></script>
<script src="./core.js"></script>
Any help would be much appreciated.