-
Notifications
You must be signed in to change notification settings - Fork 12
/
package.json
31 lines (31 loc) · 1.63 KB
/
package.json
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
{
"name": "bookstore",
"version": "1.0.0",
"description": "",
"main": "handler.js",
"scripts": {
"sequelize:setup":
"node_modules/.bin/sequelize init --force && node_modules/.bin/sequelize model:create --name book --attributes \"title:STRING\",\"author:STRING\",\"year:INTEGER\",\"pages:STRING\"",
"db:config": "node -e 'require(\"fs\").writeFile(\"sequelize-config.json\", JSON.stringify({\"development\": {\"username\": process.env.dbUser,\"password\": process.env.dbPass,\"database\": process.env.dbName,\"host\": process.env.dbHost,\"dialect\": \"postgres\"},\"test\": {\"username\": process.env.dbUser,\"password\": process.env.dbPass,\"database\": process.env.dbName,\"host\": process.env.dbHost,\"dialect\": \"postgres\"},\"production\": {\"username\": process.env.dbUser,\"password\": process.env.dbPass,\"database\": process.env.dbName,\"host\": process.env.dbHost,\"dialect\": \"postgres\"}}), function(err, data){ if(err){process.exit(1)}else{process.exit(0)}});'",
"db:migrate":
"npm run sequelize:setup && npm run db:config && node_modules/.bin/sequelize db:migrate --config sequelize-config.json",
"migrate":
"node_modules/.bin/sequelize db:migrate --config sequelize-config.json"
},
"keywords": [],
"author": "Rahul Barick<[email protected]>",
"license": "ISC",
"dependencies": {
"aws-sdk": "^2.212.1",
"lambda-env-vars": "^0.4.0",
"pg": "^7.4.1",
"pg-hstore": "^2.3.2",
"sequelize": "^4.37.3",
"sequelize-cli": "^4.0.0"
},
"devDependencies": {
"babel-preset-es2015": "^6.24.1",
"babel-preset-stage-2": "^6.24.1",
"serverless-offline": "^3.18.0"
}
}