Skip to content

Commit 7b19dde

Browse files
authored
Feat: adds Pablo Limon-Paredes Lesson 24 Local Server (#594)
* feat: adds Pablo Limon-Paredes Lesson_22 CSS styles * feat: adds more to CSS to look better * Merge branch 'code-differently:main' into PLPLPLesson22 * feat: adds Pablo Limon-Paredes lesson 24 local server
1 parent 5fe741f commit 7b19dde

File tree

11 files changed

+1511
-0
lines changed

11 files changed

+1511
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const express = require("express");
2+
const morgan = require("morgan");
3+
const path = require("path");
4+
var debug = require('debug')('myapp:server');
5+
6+
const app = express();
7+
8+
app.use(morgan("dev"));
9+
app.use(express.static(path.join(__dirname, "public")));
10+
11+
const PORT = process.env.PORT || 5500;
12+
13+
app.post('/results.html', (req, res) => {
14+
res.send('<div>Thank You For Submitting, We Will Contact You Soon!').status(200);
15+
});
16+
17+
app.listen(PORT, () => {
18+
debug(`Server listening on http://localhost:${PORT}`);
19+
});

0 commit comments

Comments
 (0)