-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
42 lines (42 loc) · 1.28 KB
/
Copy pathpackage.json
File metadata and controls
42 lines (42 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"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"
}
}