My index.html file is like shown below
<html>
<body>
<script src="public/jquery-latest-min.js"></script>
/*But this script file is not importing and creating error */
</body>
</html>
app.js code is
var express = require('express'),
app = express(),
server = require('http').createServer(app),
io = require('socket.io').listen(server);
server.listen(3000);
app.get('/',function(req, res){
res.sendfile(__dirname + '/index.html');
});
How can the index.html file can serve the jquery file located in public folder.
And my project structure is:
|-index.html
|-app.js
|-public/jquery-latest-min.js