Skip to content

bsoung/ant-racing-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ant Race Calculator - win more ant races!

Ant Race

We all know the coolest sport right now is competitive ant racing. Now you can get in on the action with some serious advantage! You'll find out which prize ant has the best chance of winning the race with this awesome little tool!

This application grabs data from a GraphQL endpoint using the Relay library. GraphQL is seriously cool stuff. For more information, visit the official sites:

Technologies

Frontend:

  • React
  • Relay

Tools:

  • Webpack
  • Babel

To Develop / Running the App Locally

  • Fork and clone the repository.
  • Go to the root directory of the cloned folder and run the follow command in the terminal:
npm i 
  • After successful installation, stay in the root directory of the app, and run the following command:
npm run start
  • Visit localhost:3000

  • Enjoy!

  • This app was made with an ejected React-Create-App generator. If you run into any strange problems, be sure to post an issue on their Repo Page.

  • If you run into any problems with GraphQL or Relay configurations, you may need to run these commands to grab a fresh schema from the Ant API and generate some new .graphql files. Replace 'GRAPHQL_API_ENDPOINT' with the appropriate Ant API endpoint.

npm install -g get-graphql-schema 

get-graphql-schema GRAPHQL_API_ENDPOINT > ./schema.graphql 
  • Then run the compiler. Make sure you are in the root directory.
relay-compiler --src ./src --schema ./schema.graphql
  • After that, try running 'npm run start' again, and that should solve any schema problems. Have fun!

About

Playing with GraphQL / Relay

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published