diff --git a/server.js b/server.js index e69de29..da12487 100644 --- a/server.js +++ b/server.js @@ -0,0 +1,22 @@ +const express = require('express'); +const path = require('path'); +const dotenv = require('dotenv'); + +dotenv.config(); + +const app = express(); +const PORT = 3000; //TODO DO NOT HARDCODE THIS + +// Middleware +app.use(express.static(path.join(__dirname, 'public'))); +app.use(express.json()); + + +// Routes +// const generateRoute = require('./routes/generate'); +// app.use('/generate', generateRoute); + +app.listen(PORT, () => { + console.log(`Server running on http://localhost:${PORT}`); +}); +