makefile
This commit is contained in:
parent
f4749ee37d
commit
3c0da2e91f
10
Makefile
Normal file
10
Makefile
Normal 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
|
@ -1,8 +1,11 @@
|
|||||||
const express = require('express')
|
const express = require('express')
|
||||||
const app = express()
|
const app = express()
|
||||||
app.get('/', function(request,result){
|
const port = 3333
|
||||||
|
|
||||||
|
app.get('/', (request, result) => {
|
||||||
result.send('Hello World!')
|
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}`)
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user