This commit is contained in:
Sam Hadow 2025-02-05 16:39:11 +01:00
parent f4749ee37d
commit 3c0da2e91f
2 changed files with 16 additions and 3 deletions

10
Makefile Normal file
View File

@ -0,0 +1,10 @@
run: clean build
podman run --replace -dt -p 3333:3333 --name=e2ee e2ee-messaging-service:latest
build:
podman build -t e2ee-messaging-service .
test:
curl http://localhost:3333
podman logs e2ee
clean:
podman rm -f e2ee

View File

@ -1,8 +1,11 @@
const express = require('express')
const app = express()
app.get('/', function(request,result){
const port = 3333
app.get('/', (request, result) => {
result.send('Hello World!')
})
app.listen(3333,"127.0.0.1",function(){
console.log('hello world')
app.listen(port, () => {
console.log(`App listening on port ${port}`)
})