// server.js
const brain = require('brain.js');
const fs = require('fs');
const express = require("express");
const http = require("http");
const path = require("path");
const app = express();
app.use(express.static(__dirname + "/"));
app.get("/", function(request, response) {
response.sendFile(__dirname + "/index.html");
// next();
});
app.use('public', express.static('public'));
const server = http.createServer(app);
const port = process.env.PORT || 3000;
server.listen(port, () => { console.log("Server started. Port: ", port); });