wundergraph.andert.me/README.md
2023-04-18 12:46:30 +02:00

51 lines
1.1 KiB
Markdown

# WunderGraph Cloud Starter
[![CI](https://github.com/wundergraph/cloud-starter/actions/workflows/ci.yaml/badge.svg)](https://github.com/wundergraph/cloud-starter/actions/workflows/ci.yaml)
A simple starter that consumes the [GraphQL SpaceX API](https://spacex-api.fly.dev/graphql/)
### Getting started locally
```shell
npm i && npm start
```
Fetch all SpaceX Dragons from your WunderGraph.
```shell
curl -X GET http://localhost:9991/operations/Dragons
```
### Run tests
```shell
npm test
```
### Deploy to WunderGraph Cloud
1. Fork this repo
2. Sign in to [WunderGraph Cloud](https://cloud.wundergraph.com)
3. Create a new project
4. Import the forked repo
5. Deploy the project
Try it out (replace `YOUR_PROJECT_NAME` with your project name):
```shell
curl -X GET https://{YOUR_PROJECT_NAME}.wundergraph.dev/operations/Dragons
```
### Make changes
1. Make changes to the `main` branch, e.g. change the query in `.wundergraph/operations/Dragons.graphql`
2. Commit and push the changes
See your changes live in less than a minute.
---
### Learn More
Read the [Docs](https://wundergraph.com/docs).