https://github.com/aadamsx/rocket
https://github.com/aadamsx/rocket
graphql react spacex-api
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/aadamsx/rocket
- Owner: aadamsx
- Created: 2018-11-25T21:31:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-02T18:17:25.000Z (over 7 years ago)
- Last Synced: 2025-07-05T18:38:59.532Z (10 months ago)
- Topics: graphql, react, spacex-api
- Language: HTML
- Size: 800 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rocket
express-GraphQL server and React example to interface the SpaceX API.
## Getting Started
Just clone and npm install.
```
$ npm run server
```
### GraphQL query examples (URL: localhost:5000/graphql)
All Flights
```
{
launches {
flight_number,
mission_name,
launch_year,
launch_success,
launch_data_local,
rocket {
rocket_id,
rocket_name,
rocket_type
}
}
}
```
Find A Flight
```
{
launch(flight_number: 2) {
flight_number,
mission_name,
launch_year,
launch_success,
launch_data_local,
rocket {
rocket_id,
rocket_name,
rocket_type
}
}
}
```
```
{
rockets {
rocket_id,
rocket_name,
rocket_type
}
}
```