Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit

Permalink
Kobay nodejs uygulaması eklendi
Browse files Browse the repository at this point in the history
  • Loading branch information
buraksenyurt committed Oct 22, 2020
1 parent 5c57852 commit 623b69a
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
7 changes: 7 additions & 0 deletions No 40 - This is Podman/src/pingapi/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM node:11
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 5555
CMD ["node", "index.js"]
10 changes: 10 additions & 0 deletions No 40 - This is Podman/src/pingapi/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const express = require('express')
const app = express()

app.get('/ping', function (request, result) {
result.send('Biraz ara verip Ping Pong oynayalım mı?')
})

app.listen(5555, "0.0.0.0", function () {
console.log('Servisimiz http://localhost:5555/ping adresinden denenebilir.')
})
15 changes: 15 additions & 0 deletions No 40 - This is Podman/src/pingapi/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "pingapi",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"express": "^4.17.1"
}
}

0 comments on commit 623b69a

Please sign in to comment.