Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/soorajshankar/temp_ddn_dev_day
https://github.com/soorajshankar/temp_ddn_dev_day
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/soorajshankar/temp_ddn_dev_day
- Owner: soorajshankar
- Created: 2024-04-15T07:01:38.000Z (7 months ago)
- Default Branch: js-files-to-md-files
- Last Pushed: 2024-04-15T07:02:11.000Z (7 months ago)
- Last Synced: 2024-05-01T15:59:22.742Z (6 months ago)
- Language: TypeScript
- Size: 406 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ecommerce App Demo using DDN (beta)
![Alt text](https://github.com/hasura/ddn_beta_ecommerce/blob/main/ecommappschema.png)
## Instructions
- [Install Hasura CLI](https://hasura.io/docs/3.0/cli/installation)
- [Login to Hasura CLI](https://hasura.io/docs/3.0/cli/commands/login)
- [Create Project](https://hasura.io/docs/3.0/cli/commands/create-project)
- Copy Project Name. Feel free to delete the project folders/files that were created. Cloning the repo will regenerate all of that for you. All you need is the project name.
- Git Clone [Repo](https://github.com/hasura/ddn_beta_ecommerce.git) and cd into it
- Go to Hasura.yaml and replace the project name with the one you get in the step above. Make sure you uncomment the project name.
- Execute the following commands to set up your subgraphs (copy paste them and run them one by one as it is)
- ddn delete subgraph app
- Say Y to the prompt
- ddn create subgraph users
- ddn create subgraph sales
- ddn create subgraph experience
- ddn create subgraph analytics
- run [ddn build supergraph-manifest](https://hasura.io/docs/3.0/cli/commands/build-supergraph-manifest)
- Heads up - it will take approximately 3 minutes to build
- go to console and test using GraphQL API queries from the [Composability folder](https://github.com/hasura/ddn_beta_ecommerce/tree/main/Composability).
- For [AuthZ](https://github.com/hasura/ddn_beta_ecommerce/blob/main/Composability/authZ.graphQL): Set x-hasura-role = customer and x-hasura-user-id = some_user_id and run the AuthZ query### Disclaimer
- This repo has credentials for databases, which are intentionally published by Hasura for demo purposes.