

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Welcome to Web Servers
incomplete
2: Async TypeScript
incomplete
3: Setup
incomplete
4: Build
incomplete
5: Server
incomplete
6: Fileservers
incomplete
7: Fileserver Quiz
incomplete
8: Serving Images
incomplete
9: Workflow Tips
incomplete
10: Custom Handlers
incomplete
11: Request, Response
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
Let's go over some of the code that we used for our simple fileserver and make sure we understand the nuts and bolts.
Consider this code snippet and answer the questions:
const app = express();
const PORT = 8080;
app.use(express.static("."));
app.listen(PORT, () => {
console.log(`Server is running at http://localhost:${PORT}`);
});