Skip to content
Snippets Groups Projects
Commit 8bb79c29 authored by Ferenc Schulcz's avatar Ferenc Schulcz
Browse files

Basic express app to serve static content

parent f75763cd
No related branches found
No related tags found
No related merge requests found
const express = require('express');
const app = express();
app.use(express.static('static'));
const server_port = 3000;
app.listen(server_port, function () {
console.log(`This server is listening on http://localhost:${server_port}`);
});
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment