feat: website
This commit is contained in:
14
server.js
Normal file
14
server.js
Normal file
@@ -0,0 +1,14 @@
|
||||
const express = require('express');
|
||||
const path = require('path');
|
||||
|
||||
const app = express();
|
||||
const PORT = process.env.PORT || 3002;
|
||||
|
||||
// Serve static files from the public directory
|
||||
app.use(express.static(path.join(__dirname, 'public')));
|
||||
|
||||
// Start server
|
||||
app.listen(PORT, () => {
|
||||
console.log(`SPORE website running at http://localhost:${PORT}`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user