This is a small web app built with React + Relay + GraphQL that retrieves and displays a list of ants from the competitive ant racing scene. It displays each ant's information in a card format, and allows users to calculate the odds of them winning with the click of an animated progress button, using a given randomizer algorithm.
Latest version of Node.js installed locally: https://nodejs.org/
- Clone the repository with
git clone https://github.com/p-cherukuri/ant-wagers.git
or by downloading the ZIP file. cd ant-wagers
and then useyarn
to install all dependencies- Use
yarn relay
, which is a custom script that runs the Relay compiler to generate JavaScript representations of all the graphql code using the downloadedschema.graphql
file - Use
yarn start
to run the development server and view the app atlocalhost:3000