-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpackage.json
37 lines (36 loc) · 2.2 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
32
33
34
35
36
37
{
"name": "serverless-postgraphql",
"version": "0.0.1",
"description": "postgraphql test on serverless",
"main": "handler.js",
"config": {
"PGCON": "postgresql://example:serverless@pgEndpoint:5432/forumexample",
"PGLOCALCON": "postgresql://postgres@localhost:5432/forumexample",
"PGLOCALRUNCON": "postgresql://forum_example_postgraphql@localhost:5432/forumexample",
"PGLOCALINITCON": "postgresql://postgres@localhost:5432/"
},
"scripts": {
"init-local-db": "psql $npm_package_config_PGLOCALINITCON -f ./populateDB/initLocal.sql",
"local-server": "yarn run local-drop-rebuild;yarn run postgraphql-local",
"rebuild-and-deploy": "yarn run drop-data;yarn run populate-schema;yarn run populate-data;yarn run build-schema;sls deploy -v",
"test": "echo \"Error: no test specified\" && exit 1",
"populate-schema": "psql $npm_package_config_PGCON -f ./populateDB/schema.sql",
"populate-data": "psql $npm_package_config_PGCON -f ./populateDB/data.sql",
"drop-data": "psql $npm_package_config_PGCON -f ./populateDB/drop.sql",
"build-schema": "node ./pgCatalog/buildPgCatalog.js $npm_package_config_PGCON forum_example",
"postgraphql-local-aws-db": "postgraphql --connection $npm_package_config_PGCON --schema forum_example --default-role forum_example_anonymous --secret keyboard_kitten --token forum_example.jwt_token",
"postgraphql-local": "postgraphql --connection $npm_package_config_PGLOCALRUNCON --schema forum_example --default-role forum_example_anonymous --secret keyboard_kitten --token forum_example.jwt_token",
"build-local-schema": "node ./pgCatalog/buildPgCatalog.js $npm_package_config_PGLOCALCON floods",
"populate-local-schema": "psql $npm_package_config_PGLOCALCON -f ./populateDB/schema.sql",
"drop-local-data": "psql $npm_package_config_PGLOCALCON -f ./populateDB/drop.sql",
"populate-local-data": "psql $npm_package_config_PGLOCALCON -f ./populateDB/data.sql",
"local-drop-rebuild": "yarn run drop-local-data;yarn run populate-local-schema;yarn run populate-local-data;yarn run build-local-schema;"
},
"author": "Richard",
"license": "MIT",
"dependencies": {
"graphql": "^0.8.2",
"pg-minify": "^0.4.2",
"postgraphql": "^2.5.0"
}
}