Skip to content
Snippets Groups Projects
Commit ac5a64c5 authored by Nur Alam Hasabie's avatar Nur Alam Hasabie
Browse files

Merge branch 'feature/pipeline' into 'develop'

Feature/pipeline

See merge request !13
parents d624e874 fe45fa31
2 merge requests!16Release/1.0,!13Feature/pipeline
Pipeline #20441 passed with stage
in 12 seconds
module.exports = {
"env": {
"browser": true,
"es6": true
"es6": true,
"amd": true
},
"extends": [
"eslint:recommended",
......
......@@ -19,12 +19,12 @@ lint:
script:
- npm run lint
# Job 2:
test:
stage: test
script:
- npm run test
# ToDo: Add coverage
# # Job 2:
# test:
# stage: test
# script:
# - npm run test
# # ToDo: Add coverage
# deployToAWS:
# only:
......
......@@ -26,6 +26,7 @@ app.get("/api/transaksi", (req, res) => {
if (err) throw err;
res.send(JSON.stringify({ status: 200, error: null, response: results }));
});
console.log(query);
});
//add new transaction
......@@ -42,6 +43,7 @@ app.post("/api/transaksi", (req, res) => {
}
res.send(JSON.stringify({ status: 200, error: null, response: results }));
});
console.log(query);
});
//change transaction status
......@@ -56,6 +58,7 @@ app.put("/api/transaksi/:id_transaksi", (req, res) => {
if (err) throw err;
res.send(JSON.stringify({ status: 200, error: null, response: results }));
});
console.log(query);
});
// Send all user transaction data
......@@ -72,6 +75,7 @@ app.get("/api/transaksi/:id_transaksi", (req, res) => {
JSON.parse(JSON.stringify({ response: { account_num, results } }))
);
});
console.log(query);
});
//===========================================================================================
......
......@@ -4,9 +4,8 @@
"description": "1. Mengembalikan seluruh data transaksi (layanan 3)\r ### Alam\r 1. Menambah transaksi baru (layanan 1)\r 2. Skema database \r ### Josep\r 1. Mengubah status sebuah transaksi (layanan 2)",
"main": "index.js",
"scripts": {
"start": "nodemon index.js",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint"
"lint": "eslint index.js",
"start": "nodemon index.js"
},
"repository": {
"type": "git",
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment