forked from wundergraph/cosmo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: simplify readme, add examples directory (wundergraph#1090)
- Loading branch information
Showing
16 changed files
with
373 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Full Cosmo Docker | ||
|
||
This example demonstrates how to run the entire Cosmo platform locally with Docker Compose. | ||
|
||
### Prerequisites | ||
|
||
- [Docker](https://docs.docker.com/get-docker/) | ||
- [Docker Compose](https://docs.docker.com/compose/install/) (version 2+ only) | ||
- [NPM](https://nodejs.org/en/download/) (for the Cosmo CLI) | ||
|
||
## Getting started | ||
|
||
> [!WARNING] | ||
> Please give Docker Desktop enough resources (CPU, Memory) to run the platform. We recommend at least 4 CPUs and 8GB of memory. | ||
1. Start the platform: | ||
|
||
```shell | ||
./start.sh | ||
``` | ||
|
||
2. Navigate to the [Studio Playground](http://localhost:3000/wundergraph/default/graph/mygraph/playground) and query the router. Login with the default credentials: | ||
|
||
``` | ||
Username: foo@wundergraph.com | ||
Password: wunder@123 | ||
``` | ||
|
||
Finally :rocket:, navigate to the [Studio Playground](https://cosmo.wundergraph.com/wundergraph/default/graph/mygraph/playground) to run the query: | ||
|
||
```graphql | ||
query MyEmployees { | ||
employees { | ||
details { | ||
forename | ||
} | ||
currentMood | ||
derivedMood | ||
isAvailable | ||
notes | ||
products | ||
} | ||
} | ||
``` | ||
|
||
After you are done, you can clean up the demo by running `./destroy.sh`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
cd ../.. && make full-demo-down |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
cd ../.. && make full-demo-up |
Oops, something went wrong.