setup github actions for deploy

This commit is contained in:
bckelley
2024-10-31 15:54:01 -05:00
parent 27c3767512
commit 6a7da746c5
7 changed files with 71 additions and 20 deletions
+20
View File
@@ -0,0 +1,20 @@
const express = require('express');
const bodyParser = require('body-parser');
const dotenv = require('dotenv');
const app = express();
dotenv.config();
const port = process.env.PORT || 3000;
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
app.use(express.static('src'));
// Routes for your application
app.get("/", (req, res) => {
res.sendFile(__dirname + '/src/html/index.html');
});
app.listen(port, () => {
console.log(`Server is running on port ${port}`);
})