You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 9, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: surveyo/README.md
+10-7Lines changed: 10 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,16 +40,19 @@ Surveyo is a sample app that provides users with a survey tool that they can use
40
40
41
41
### No-Auth Version
42
42
43
-
+ Inside the root folder, locate the `schema_noauth.graphql` file, copy all the content and run it in your [Graphql client](https://dgraph.io/docs/graphql/quick-start/) or via `terminal` using the command `curl -X POST localhost:8080/admin/schema --data-binary <@SCHEMA_NOAUTH.GRAPHQL>`.
44
-
+ Inside the src folder locate the `ApolloConfig.js` file and inside the `createApolloClient` function change the value of the `GRAPHQL ENDPOINT` constant > to `http://localhost:8080/graphql`.
45
-
+ In the root folder of the application, open a terminal and run the following commands: `npm install` and then `npm start`.
43
+
1. Copy the entire contents of the `schema_noauth.graphql` file located in the root folder of the application.
44
+
2. Open your `Graphql Client`, you can check some GraphQL clients [here](https://dgraph.io/docs/graphql/quick-start/#testing-your-graphql-api) or open a `terminal` and run the following command: `curl -X POST localhost:8080/admin/schema --data-binary <@SCHEMA_NOAUTH.GRAPHQL>`, which contains the code copied in step 1.
45
+
3. Locate the `ApolloConfig.js` file in the application`src` folder and locate the `createApolloClient` function. Change the value of the constant `GRAPHQL ENDPOINT` to `http://localhost:8080/graphql`.
46
+
4. In the root folder of the application, open a terminal and run the following commands: `npm install` followed by `npm start`.
46
47
47
48
### Auth Version
48
49
49
-
+ Inside the root folder, locate the `schema.graphql` file, copy all the content and run it in your [Graphql client](https://dgraph.io/docs/graphql/quick-start/) or via `terminal` using the command `curl -X POST localhost:8080/admin/schema --data-binary <@SCHEMA.GRAPHQL>`.
50
-
+ Create an authentication service account in: [Auth0](https://auth0.com/).
51
-
+ After create your auth0 account follow this steps: [Using Auth0](https://dgraph.io/docs/learn/developer/todo-app-tutorial/todo-auth0-jwt/)-how to use auth0.
52
-
+ In the root folder of the application, open a terminal and run the following commands: `npm install` and then `npm start`.
50
+
1. Copy the entire contents of the `schema_auth.graphql` file located in the root folder of the application.
51
+
2. Open your `Graphql Client`, you can check some GraphQL clients [here](https://dgraph.io/docs/graphql/quick-start/#testing-your-graphql-api) or open a `terminal` and run the following command: `curl -X POST localhost:8080/admin/schema --data-binary <@SCHEMA_NOAUTH.GRAPHQL>`, which contains the code copied in step 1.
52
+
+ Inside the root folder, locate the `schema.graphql` file, copy all the content and run it in your `Graphql client` you can check some GraphQL clients [here](https://dgraph.io/docs/graphql/quick-start/#testing-your-graphql-api) or via `terminal` using the command `curl -X POST localhost:8080/admin/schema --data-binary <@SCHEMA.GRAPHQL>`.
53
+
3. Create an authentication service account on: [Auth0](https://auth0.com/).
54
+
4. After creating your Auth0 account, follow the instructions provided [here](https://dgraph.io/docs/learn/developer/todo-app-tutorial/todo-auth0-jwt/) to set up Auth0 authentication.
55
+
5. In the root folder of the application, open a terminal and run the following commands: `npm install` followed by `npm start`.
0 commit comments