iLeaderboard, meet myLeaderboard
cd api
yarn
yarn start
- The console will start an ngrok instance and provide a URL which tunnels to your local instance. You should be able to hit the various endpoints from here.
- You'll probably want to update
api/.env
with a GitHub API Token so you aren't rate limited while testing. - Check out the API Reference
- GraphQL endpoints are also available. With the server running, you can use GraphiQL
- Follow steps to set up a local instance of the API. This will update
dashboard/src/api/LeaderboardAPI.ts
with the URL for your ngrok instance automatically. cd dashboard
yarn
yarn start
- The dashboard will be available at
localhost:3000
- Follow the steps to set up a local instance of the API. This will update
ios/MyLeaderboard/MyLeaderboard/Source/API/MyLeaderboardAPI.swift
with the URL for your ngrok instance automatically. cd ios
- If you are modifying queries, use
./generate_api
to run Syrup and regenerate the models.
- node (tested with 10.15+)
- yarn (tested with 1.22+)
- ngrok
- yarn (tested with 1.22+)
- Swift 5.0+
- swiftLint
Clone the repo and follow the steps below for the component you're interested in contributing to:
- Make your changes and run
yarn lint
to ensure there are no lint errors - Open a PR with your changes (don't include ngrok URLs) 🎉
- Make your changes and run
yarn lint
to ensure there are no lint errors - Open a PR with your changes 🎉
- Make your changes and run
swiftlint
to ensure there are no lint warnings or errors - Open a PR with your changes 🎉