{"size": 423, "ext": "js", "max_stars_repo_path": "server/index.js", "max_stars_repo_name": "hyperiondroid/leechbox", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "server/index.js", "max_issues_repo_name": "hyperiondroid/leechbox", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "server/index.js", "max_forks_repo_name": "hyperiondroid/leechbox", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.4375, "max_line_length": 56, "alphanum_fraction": 0.6643026005}
const express = require('express');
const path = require('path');

const app = express();
const port = process.env.PORT || 9090;
const DIST_DIR = path.join(__dirname, '../build');
const indexHtmlFile = path.join(DIST_DIR, 'index.html');
app.use(express.static(DIST_DIR));

app.get('/*', (req, res) => {
    res.sendFile(indexHtmlFile);
   });

app.listen(port, function () {
 console.log('Leechbox serving on ' + port);
});