repl.it
@ItsYeBoiJ/

Space Trader

Nodejs

Space-based trading game

fork
loading
Files
  • index.js
  • public
  • src
  • .babelrc
  • sync.js
  • webpack.config.js
  • webpack.runner.js
  • yarn-error.log
  • yarn.lock
  • Packager files
  • package-lock.json
  • package.json
index.js
1
2
3
4
5
6
7
8
9
10
11
// Util
const path = require('path');

// Express
const express = require('express');
const app = express();
app.use(express.static('public'));

// Start server
const port = process.env.PORT || 3000;
app.listen(port, () => console.log(`App listening on ${port}`));