League Stats UI: A web interface for viewing everything stats related for League of Legends.
- Clone the repo using
git clone git://github.com/NoPhaseNoKill/league-stats-ui.git
- Install Yarn
- Install project dependencies with
yarn install
- Get Riot API key from https://developer.riotgames.com/
- Create .env file in root directory
- Add RIOT_API_KEY=XXXXXXXXXXXXX (your key instead of XXXXXX) to .env file
- If you would like IntelliSense for styled-components' template literals, please download relevant IDE plugin
- Start with
yarn start
- Will auto re-direct to browser on port 3000 on your development machine.
- Fork project
- Make some changes.
yarn lint
to check your code for linting errors.yarn test
to run the test suite.- Pull latest changes from upstream (see: https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/syncing-a-fork)
- Submit a pull request. Wait for review and merge.
- Congratulations! You're a contributor.
- If you're interested in contributing regularly, let me know and I'll add you to the organization.
- Git commit will run prettier, and eslint, to format code style appropriately
- Language: Typescript
- Framework: React
- Testing Framework: Jest + Enzyme + Cypress
- CSS: Styled Components
- Styled Components
- Typescript
- Basic Docs: https://www.typescriptlang.org/docs/home.html
- More advanced patterns/examples: https://basarat.gitbook.io/typescript/
- React:
- Tutorial: https://reactjs.org/tutorial/tutorial.html
- Hello world: https://reactjs.org/docs/hello-world.html
- Thinking in React: https://facebook.github.io/react/docs/thinking-in-react.html
- Testing frameworks
- Unit/Integration
- Jest
- Basic docs: https://jestjs.io/docs/en/getting-started
- More advanced patterns/examples: https://jestjs.io/docs/en/snapshot-testing
- Enzyme:
- Shallow rendering: https://github.com/enzymejs/enzyme/blob/master/docs/api/shallow.md
- Full DOM rendering: https://github.com/enzymejs/enzyme/blob/master/docs/api/mount.md
- Jest
- Functional/E2E
- Unit/Integration