This project is a simple GraphQL server that uses SpaceX and GeoDataSource APIs to fetch data about launchpads and cities.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
What things you need to install the software and how to install them:
- Node.js
- npm
A step by step series of examples that tell you how to get a development environment running:
- Clone the repository
- Navigate to the project directory
- Install the dependencies with
npm install
- Start the server with
npm start
The server provides the following GraphQL resolvers:
Launchpad.city
: Fetches city data based on the latitude and longitude of the launchpad.Query.launchpads
: Fetches data about all SpaceX launchpads.Query.launchpad
: Fetches data about a specific SpaceX launchpad based on its ID.Query.city
: Fetches city data based on provided latitude and longitude.
- Node.js
- GraphQL