Skip to content

Commit

Permalink
Copilot third commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Queen3Bella committed Jul 30, 2023
1 parent c4ff05a commit b17569c
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions comments.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// Create web server
// 1. Load express module
// 2. Create web server
// 3. Start server
// 4. Create route
// 5. Create function for route
// 6. Start server
// 7. Test in browser

// 1. Load express module
const express = require('express');

// 2. Create web server
const server = express();

// 4. Create route
// 5. Create function for route
server.get('/', (req, res) => {
res.send(`
<form method="POST">
<input name="username" type="text">
<button>Submit</button>
</form>
`);
});

// 6. Start server
server.listen(3000, () => {
console.log('Listening on port 3000');
});

// 7. Test in browser
// http://localhost:3000/

0 comments on commit b17569c

Please sign in to comment.