By Dale Sakamoto and David Griffin and special thanks to Sam Hill
Using a Stepzen/Graphql backend to supply a react frontend using react hooks to store an object of known comets and likely impact points on planet earth. the frontend then queries the user for a location and an algorythm determines the closest location impact and the responsible comet. data pulled from NASA JPL API through Stepzen and into the waiting arms of our front end state.
git clone https://github.com/davidleegriffin/react-stepzen-comets.git
cd react-stepzen-comets && npm i
The stepzen start
command uploads and deploys your API automatically.
stepzen start
This also deployed our API to https://username.stepzen.net/react-stepzen-comets/users/__graphql
.
touch .env
Fill in your username and set the URL to the REACT_APP_STEPZEN_ENDPOINT
environment variable. Include your StepZen API key for the REACT_APP_STEPZEN_API_KEY
environment variable.
REACT_APP_STEPZEN_API_KEY=YOUR_KEY_HERE
REACT_APP_STEPZEN_ENDPOINT=YOUR_ENDPOINT_HERE
Start the development server in a different terminal from the stepzen start but from the same root directory, it will serve on localhost:3000
.
npm start
A display of various routes taken while navigating site
Things learned while we worked on react-stepzen-comets:
fix UX/UI on homepage following kanban guide
fix issues