This commit is contained in:
parent
4b12e2c456
commit
3ed22e25dc
4 changed files with 1561 additions and 1237 deletions
|
@ -1,6 +1,22 @@
|
|||
steps:
|
||||
build:
|
||||
TEST:
|
||||
image: zsh
|
||||
commands:
|
||||
- echo "hi this is $user"
|
||||
- echo "hi this is test"
|
||||
|
||||
BUILD:
|
||||
image: zsh
|
||||
commands:
|
||||
- podman build . -t todoapp
|
||||
|
||||
CLEAN:
|
||||
image: zsh
|
||||
commands:
|
||||
- podman rm -f todoapp || true
|
||||
|
||||
RUN:
|
||||
image: zsh
|
||||
commands:
|
||||
- podman run -d -p 8989:8989 --name todoapp todoapp:latest
|
||||
|
||||
|
||||
|
|
2
app.js
2
app.js
|
@ -5,7 +5,7 @@ const express = require('express'),
|
|||
// Mitigate XSS using sanitizer
|
||||
sanitizer = require('sanitizer'),
|
||||
app = express(),
|
||||
port = 8000
|
||||
port = 8989
|
||||
|
||||
app.use(bodyParser.urlencoded({
|
||||
extended: false
|
||||
|
|
2772
package-lock.json
generated
2772
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -3,7 +3,7 @@
|
|||
"version": "0.1.0",
|
||||
"dependencies": {
|
||||
"body-parser": "^1.16.0",
|
||||
"ejs": "^2.5.5",
|
||||
"ejs": "^3.1.9",
|
||||
"express": "^4.14.0",
|
||||
"method-override": "^3.0.0",
|
||||
"sanitizer": "^0.1.3"
|
||||
|
@ -16,7 +16,7 @@
|
|||
"description": "Basic to do list exercise",
|
||||
"devDependencies": {
|
||||
"chai": "^4.2.0",
|
||||
"mocha": "^6.2.1",
|
||||
"mocha": "^10.2.0",
|
||||
"nyc": "^14.1.1",
|
||||
"supertest": "^4.0.2"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue