0
hello guys I am beginner in the area, this and my prblema: My express server does not find the Java and style files contained in html this is my code: APP.JS
const express = require('express')
const app = express()
app.get('/', function(req, res){
res.sendFile(__dirname + "/index.html")
})
app.listen(8000, function () {
console.log("Servidor test Rodando!")
})
HERE IS THE HTML:
<html>
<head>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="alphabet.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<canvas id="myCanvas"></canvas>
<script type="text/javascript" src="bubbles.js"></script>
<script type="text/javascript" src="cores.js"></script>
</body>
</html>
TENHOS TODOS ESSES ARQUIVOS JS.MAIS O NAVEGADOR NÃO POSSO ACHAR.