-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpackage.json
More file actions
33 lines (33 loc) · 1.14 KB
/
package.json
File metadata and controls
33 lines (33 loc) · 1.14 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
{
"name": "example-address-book-app",
"version": "0.0.1",
"description": "Example address book app using PostgreSQL + Node.js/Express",
"license": "MIT",
"scripts": {
"start": "node api.js",
"start:dev": "nodemon api.js",
"db:create": "createdb address_book",
"db:drop": "dropdb address_book",
"db:schema": "psql address_book < ./database/schema.sql",
"db:reset": "npm run db:drop && npm run db:create && npm run db:schema",
"test": "NODE_ENV=test mocha ./test/*_test.js",
"test:api": "NODE_ENV=test mocha ./test/api_test.js",
"test:queries": "NODE_ENV=test mocha ./test/queries_test.js",
"test:db:create": "createdb address_book_test",
"test:db:drop": "dropdb address_book_test",
"test:db:schema": "psql address_book_test < ./database/schema.sql",
"test:db:reset": "npm run test:db:drop && npm run test:db:create && npm run test:db:schema"
},
"dependencies": {
"body-parser": "^1.17.2",
"chai": "^4.1.0",
"express": "^4.15.3",
"lodash": "^4.17.4",
"mocha": "^3.4.2",
"pg-promise": "^6.3.5"
},
"devDependencies": {
"chai-http": "^3.0.0",
"nodemon": "^1.11.0"
}
}