From 9eef9bc81ceb29ac1fca3fcbe960b6d2fa9ff74d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Wed, 19 Dec 2018 10:06:00 +0100 Subject: [PATCH 1/4] Fix 'audience must be a string or array' I ran into this issue after setting up the installation locally. --- .env.template | 1 + 1 file changed, 1 insertion(+) diff --git a/.env.template b/.env.template index 59ae471c9..3ec0cbce9 100644 --- a/.env.template +++ b/.env.template @@ -3,6 +3,7 @@ NEO4J_USER=neo4j NEO4J_PASSWORD=letmein GRAPHQL_PORT=4000 GRAPHQL_URI=http://localhost:4000 +CLIENT_URI=http://localhost:3000 MOCK=false JWT_SECRET=b/&&7b78BF&fv/Vd From 01c4090792f781074f5db320b229f0e6f7f08112 Mon Sep 17 00:00:00 2001 From: Joseph Date: Thu, 20 Dec 2018 22:18:18 +0300 Subject: [PATCH 2/4] Update README.md add build command before db:seed --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 1eb8cc528..17a26caad 100644 --- a/README.md +++ b/README.md @@ -117,8 +117,10 @@ Optionally you can seed the GraphQL service by executing mutations that will write sample data to the database: ```bash +yarn run build yarn run db:seed # -or- +npm run build npm run db:seed ``` From cd651b07faae8474fcb4908f11ed8b6602684d37 Mon Sep 17 00:00:00 2001 From: Toverto Date: Sun, 23 Dec 2018 19:30:15 +0100 Subject: [PATCH 3/4] Change db scripts to run nodemon instead of node this way you don't have to run yarn run build before seeding the db --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3dcf5db74..41de1d7de 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,8 @@ "test:coverage": "nyc report --reporter=text-lcov > coverage.lcov", "db:script:seed": "wait-on tcp:4001 && babel-node src/seed/seed-db.js", "db:script:reset": "wait-on tcp:4001 && babel-node src/seed/reset-db.js", - "db:seed": "$npm_package_config_no_auth run-p --race start db:script:seed", - "db:reset": "$npm_package_config_no_auth run-p --race start db:script:reset" + "db:seed": "$npm_package_config_no_auth run-p --race dev db:script:seed", + "db:reset": "$npm_package_config_no_auth run-p --race dev db:script:reset" }, "author": "Human Connection gGmbH", "license": "MIT", From bd59f916b0c6c3c047e2554b62c92be4070b0206 Mon Sep 17 00:00:00 2001 From: Toverto Date: Wed, 26 Dec 2018 16:19:40 +0100 Subject: [PATCH 4/4] Remove the build instruction for seeding the db in README.md --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 17a26caad..1eb8cc528 100644 --- a/README.md +++ b/README.md @@ -117,10 +117,8 @@ Optionally you can seed the GraphQL service by executing mutations that will write sample data to the database: ```bash -yarn run build yarn run db:seed # -or- -npm run build npm run db:seed ```