Skip to content
This repository was archived by the owner on Oct 9, 2024. It is now read-only.

Commit c3828a2

Browse files
committed
Updated text Getting started section
1 parent c7525be commit c3828a2

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

surveyo/README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,19 @@ Surveyo is a sample app that provides users with a survey tool that they can use
4040

4141
### No-Auth Version
4242

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`.
4647

4748
### Auth Version
4849

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`.
5356

5457
### Links
5558

0 commit comments

Comments
 (0)