{"size": 438, "ext": "js", "max_stars_repo_path": "server.js", "max_stars_repo_name": "louisbrent1992/TicTacToe", "max_stars_repo_stars_event_min_datetime": "2022-01-29T19:07:45.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-29T19:07:45.000Z", "max_issues_repo_path": "server.js", "max_issues_repo_name": "louisbrent1992/TicTacToe", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "server.js", "max_forks_repo_name": "louisbrent1992/TicTacToe", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.9, "max_line_length": 64, "alphanum_fraction": 0.6438356164}
const express = require("express");
const path = require("path");
const http = require("http");

const port = process.env.PORT || 8080;
const app = express();

app.use(express.static("public"));

app.get("*", (req, res) => {
	res.sendFile(path.join(__dirname, "index.html"));
});

app.set("port", port);
const server = http.createServer(app);

server.listen(port, () =>
	console.log(`*** Server is up and running on port ${port} ***`)
);
