Skip to content

Commit af24b38

Browse files
committed
update server for basic and advanced boilerplates
1 parent a6e4ec6 commit af24b38

File tree

16 files changed

+165
-15257
lines changed

16 files changed

+165
-15257
lines changed

advanced/package-lock.json

Lines changed: 0 additions & 14296 deletions
This file was deleted.

advanced/server/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
PRISMA_ENDPOINT="__PRISMA_ENDPOINT__"
22
PRISMA_SECRET="mysecret123"
3-
APP_SECRET="jwtsecret123"
3+
APP_SECRET="jwtsecret123"

advanced/server/.graphqlconfig.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
projects:
22
app:
3-
schemaPath: "src/schema.graphql"
3+
schemaPath: src/schema.graphql
44
extensions:
55
endpoints:
6-
default: "http://localhost:4000"
6+
default: http://localhost:4000
77
database:
8-
schemaPath: "src/generated/prisma.graphql"
8+
schemaPath: src/generated/prisma.graphql
99
extensions:
10-
prisma: database/prisma.yml
10+
prisma: database/prisma.yml

advanced/server/README.md

Lines changed: 0 additions & 80 deletions
This file was deleted.
Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
1-
# the endpoint of your service (this also defines the cluster the service will be deployed to)
1+
# The endpoint of your Prisma API (deployed to a Prisma Sandbox).
22
endpoint: ${env:PRISMA_ENDPOINT}
33

4-
# to disable authentication:
5-
# disableAuth: true
6-
secret: ${env:PRISMA_SECRET}
7-
8-
# the file path pointing to your data model
4+
# The file containing the definition of your data model.
95
datamodel: datamodel.graphql
106

11-
# seed your service with initial data based on seed.graphql
7+
# Seed your service with initial data based on `seed.graphql`.
128
seed:
13-
import: seed.graphql
9+
import: seed.graphql
10+
11+
# Download the GraphQL schema of the Prisma API into
12+
# `src/generated/prisma.graphql` (as specfied in `.graphqlconfig.yml`).
13+
hooks:
14+
post-deploy:
15+
- graphql get-schema --project database
16+
17+
# If specified, the `secret` must be used to generate a JWT which is attached
18+
# to the `Authorization` header of HTTP requests made against the Prisma API.
19+
# Info: https://www.prisma.io/docs/reference/prisma-api/concepts-utee3eiquo#authentication
20+
# secret: ${env:PRISMA_SECRET}

advanced/server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
"bcryptjs": "2.4.3",
1111
"graphql-yoga": "1.9.2",
1212
"jsonwebtoken": "8.2.1",
13-
"prisma-binding": "1.5.17"
13+
"prisma-binding": "1.5.18"
1414
},
1515
"devDependencies": {
1616
"dotenv": "5.0.1",
1717
"graphql-cli": "2.15.10",
1818
"nodemon": "1.17.3",
1919
"npm-run-all": "4.1.2",
20-
"prisma": "1.7.0"
20+
"prisma": "1.7.1"
2121
}
2222
}

0 commit comments

Comments
 (0)