Skip to content

Commit

Permalink
add node app to docker example
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Hirter committed Aug 21, 2024
1 parent a5a72fe commit c9aef6f
Show file tree
Hide file tree
Showing 6 changed files with 795 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .talismanrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ fileignoreconfig:
checksum: 0bb782bc7896acf5ae957c0a6e406a31a2cea768a7b6f86df314ec0f1bf37a0e
- filename: Examples/JavaScript/Svelte/svelte-example/package-lock.json
checksum: 49b1eac3eeeda103edfa79332aabf552874ef6d1a848dd6a4725b6839fc2ff02
- filename: Examples/Docker/package-lock.json
checksum: 905628c992b4e9ebdc237623d6598860cea6f81e6d921a2028125b0a576f3f6e
version: ""
2 changes: 1 addition & 1 deletion Examples/Docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ services:
web:
build:
context: .
dockerfile: ./backend/Dockerfile
dockerfile: Dockerfile
ports:
- "8080:8080"
volumes:
Expand Down
11 changes: 11 additions & 0 deletions Examples/Docker/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import express from "express"

const app = express();

const port = 8080;

app.get('/', function (req, res) {
res.send('Hello World!');
});app.listen(port, function () {
console.log(`Example app listening on http://localhost:${port}.`);
});
Loading

0 comments on commit c9aef6f

Please sign in to comment.