This is me following Brad Traversy's youtube video series:
- Part One - Express GraphQL Server
- Part Two - React & Apollo Setup
- Part Three - Finishing The App
- Part Four - Simple Heroku Deploy
Year 2021
# Install dependencies (server & client)
npm install
cd client && npm install
# Run server & client (:3000 & :5000)
npm run dev
# Server only (:5000)
npm run server
# Client only (:3000)
npm run client
# Build for production (Builds into server ./public)
cd client && npm run build
# Graphiql - http://localhost:5000/graphql
Get some info on launches & rocket
{
launches {
flight_number,
mission_name,
launch_year,
launch_success,
launch_date_local,
rocket {
rocket_id,
rocket_name,
rocket_type
}
}
}
Get launch of particular flight_number
{
launch(flight_number: 2) {
mission_name,
launch_year,
launch_success,
rocket{
rocket_name
}
}
}