{
  "name": "server",
  "version": "0.1.0",
  "engines": {
    "node": "18.x"
  },
  "private": true,
  "description": "Template for ExpressJS API with Mongoose for Web and Mobile Engineering (DIT342)",
  "main": "./app.js",
  "scripts": {
    "start": "node ./app.js",
    "dev": "nodemon ./app.js",
    "lint": "eslint .",
    "test": "cross-env-shell MONGODB_URI=mongodb://127.0.0.1:27017/serverTestDB \"npm run newman-server\"",
    "ci-test": "npm run newman-server",
    "newman-server": "cross-env-shell PORT=3000 \"npm run dropdb && run-p --race start newman-wait\"",
    "newman-wait": "wait-on http://127.0.0.1:3000/api && npm run newman",
    "newman": "newman run ./tests/server.postman_collection.json --env-var host=http://127.0.0.1:3000",
    "dropdb": "node ./tests/dropdb.js"
  },
  "repository": {
    "type": "git",
    "url": "git+https://gitlab.com/dit342/group-00-web.git"
  },
  "dependencies": {
    "bcrypt": "^5.1.1",
    "body-parser": "^1.20.2",
    "connect-history-api-fallback": "^1.6.0",
    "cors": "^2.8.5",
    "express": "^4.18.2",
    "method-override": "^3.0.0",
    "mongoose": "^7.5.0",
    "morgan": "^1.10.0"
  },
  "devDependencies": {
    "cross-env": "^7.0.3",
    "newman": "^5.3.2",
    "nodemon": "^2.0.22",
    "npm-run-all": "^4.1.5",
    "wait-on": "^5.3.0"
  }
}
