Commit 32c97b9c authored by Kiraa Corsac's avatar Kiraa Corsac
Browse files

init

parent d35ae2b8
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+1 −0
Original line number Diff line number Diff line
node_modules

app.js

0 → 100644
+9 −0
Original line number Diff line number Diff line
const express = require('express');
const services = require('./services.js')
const app = express();

app.get('/adding/:a/:b', (req, res) => {
  res.status(200).send(`${services.adding(parseInt(req.params.a), parseInt(req.params.b))}`)
});

module.exports = app;
 No newline at end of file

package-lock.json

0 → 100644
+5395 −0

File added.

Preview size limit exceeded, changes collapsed.

package.json

0 → 100644
+23 −0
Original line number Diff line number Diff line
{
  "name": "ci-cd-visitlab-example",
  "version": "1.0.0",
  "description": "",
  "main": "app.js",
  "scripts": {
    "test": "jest"
  },
  "repository": {
    "type": "git",
    "url": "https://gitlab.fi.muni.cz/xopaleny/ci-cd-visitlab-example.git"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "express": "^4.17.1",
  },
  "devDependencies": {
    "jest": "^26.6.3",
    "jest-junit": "^12.0.0",
    "supertest": "^6.1.3"
  }
}

server.js

0 → 100644
+5 −0
Original line number Diff line number Diff line
const app = require("./app");
const port = 3000;
app.listen(port, () => {
  console.log(`Example app listening on port ${port}!`);
});
 No newline at end of file
Loading