Skip to content

Commit 5fe741f

Browse files
feat:Adds Dasia's local Server to lesson_24 (not finished) (#591)
* feat:Adds Dasia's start to lesson_24 * feat: Dasia's Code Differently styled website to Lesson_22 * feat: adds updates to my homework * Delete lesson_22/dasiaenglish/index.html * Delete lesson_22/dasiaenglish/style.css * fix:Dele tes lesson_22 files from my lesson_24 homework * chore: removing unnecessary files Signed-off-by: Anthony D. Mays <[email protected]> --------- Signed-off-by: Anthony D. Mays <[email protected]> Co-authored-by: Anthony D. Mays <[email protected]>
1 parent f0b7c23 commit 5fe741f

File tree

7 files changed

+1439
-0
lines changed

7 files changed

+1439
-0
lines changed

lesson_24/dasiaenglish/index.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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 || 3000;
12+
13+
14+
app.post('/resut.html',(req, res) => {
15+
res.send("This is working!").status(200);
16+
});
17+
18+
app.listen(PORT, () => {
19+
debug(`Server listening on http://localhost:${PORT}`);
20+
});

0 commit comments

Comments
 (0)