Compare commits

..

No commits in common. "bafb997fa62fafa9364d5d01ef96a25db8736ba7" and "ab09b64ed5d1c38b455243df9075a34521c1077f" have entirely different histories.

2 changed files with 1 additions and 23 deletions

View file

@ -6,7 +6,7 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"start": "node src/server.js" "start": "node server.js"
}, },
"author": "ryan", "author": "ryan",
"license": "ISC", "license": "ISC",

View file

@ -1,22 +0,0 @@
import express from 'express';
import dotenv from 'dotenv';
import path from 'path'; // Import the path module
import routes from './routes.js'; // Import routes from routes.js
import { validateEnvVariables } from './envValidator.js';
dotenv.config();
validateEnvVariables();
const app = express();
const PORT = process.env.PORT || 3002;
app.use(express.json());
app.use(express.static(path.join(process.cwd(), 'public')));
app.use('/', routes);
app.listen(PORT, () => {
console.log(`Server is running on http://localhost:${PORT}`);
});