Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Node.js docker web app
import express from "express";
const app = express();
const port = 8080;
app.get("/", (req, res) => {
res.send("Cześć świecie 👋");
});
app.listen(port, () => {
console.log(`Listening on port ${port}`);
});
{
"name": "dockerwebapp",
"version": "1.0.0",
"description": "Simple web app",
"main": "index.js",
"scripts": {
"start": "node index.js"
},
"type": "module",
"author": "kamil@frontstack.pl",
"license": "MIT",
"dependencies": {
"express": "^4.17.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment