-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Premstats: complete project #1
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
0853ed4
Add base styles
anuarshaidenov 4f83034
Import images
anuarshaidenov 6f26fe4
Add and style desktop header
anuarshaidenov 1f37172
Add teams route
anuarshaidenov e230fe4
Configure redux
anuarshaidenov 44b2f8b
Fetch teams from API
anuarshaidenov 67d122b
Add and style teams section
anuarshaidenov 7446209
Add background image
anuarshaidenov fcead6c
Add filtered search
anuarshaidenov 8c4c6f3
Add filtered search
anuarshaidenov fe31a78
Display team form
anuarshaidenov 819fd37
Display match stats
anuarshaidenov c0ac4e6
Remove image from hero section
anuarshaidenov ed0f300
Display team league
anuarshaidenov 3a43ea6
Add go back button
anuarshaidenov 987448c
Display team goals
anuarshaidenov 8aeb928
Mock standings
anuarshaidenov df40658
Display team standings
anuarshaidenov 5678a0b
Add standings page
anuarshaidenov 6bac2b6
Fix eslint errors
anuarshaidenov 10d3ff0
Fix stylelint errors
anuarshaidenov 339621b
Add standings test
anuarshaidenov 1eee673
Add team reducer tests
anuarshaidenov 73c7f6b
Add teams reducer tests
anuarshaidenov ee984c3
Add hero section test
anuarshaidenov 5ad933b
Add teams section test
anuarshaidenov 0b107f3
Add tests for standings component
anuarshaidenov 83804ff
Change endpoint
anuarshaidenov 4d2d195
Change key
anuarshaidenov 045952e
Hide api key
anuarshaidenov f2e00fb
Update README.md
anuarshaidenov 49c2928
Update README.md
anuarshaidenov db248ae
Add video presentation link
anuarshaidenov d3251cc
Add acknowledgements section
anuarshaidenov File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"presets": ["@babel/preset-react"], | ||
"plugins": ["@babel/plugin-syntax-jsx"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"jest": true | ||
}, | ||
"parser": "@babel/eslint-parser", | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"ecmaVersion": 2018, | ||
"sourceType": "module" | ||
}, | ||
"extends": ["airbnb", "plugin:react/recommended"], | ||
"plugins": ["react"], | ||
"rules": { | ||
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }], | ||
"react/react-in-jsx-scope": "off", | ||
"import/no-unresolved": "off", | ||
"no-shadow": "off" | ||
}, | ||
"ignorePatterns": ["dist/", "build/"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Linters | ||
|
||
on: pull_request | ||
|
||
env: | ||
FORCE_COLOR: 1 | ||
|
||
jobs: | ||
eslint: | ||
name: ESLint | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
- name: Setup ESLint | ||
run: | | ||
npm install --save-dev eslint@7.x eslint-config-airbnb@18.x eslint-plugin-import@2.x eslint-plugin-jsx-a11y@6.x eslint-plugin-react@7.x eslint-plugin-react-hooks@4.x @babel/eslint-parser@7.x @babel/core@7.x @babel/plugin-syntax-jsx@7.x @babel/preset-env@7.x @babel/preset-react@7.x | ||
[ -f .eslintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/react-redux/.eslintrc.json | ||
[ -f .babelrc ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/react-redux/.babelrc | ||
- name: ESLint Report | ||
run: npx eslint . | ||
stylelint: | ||
name: Stylelint | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
- name: Setup Stylelint | ||
run: | | ||
npm install --save-dev stylelint@13.x stylelint-scss@3.x stylelint-config-standard@21.x stylelint-csstree-validator@1.x | ||
[ -f .stylelintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/react-redux/.stylelintrc.json | ||
- name: Stylelint Report | ||
run: npx stylelint "**/*.css" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"extends": ["stylelint-config-standard"], | ||
"plugins": ["stylelint-scss", "stylelint-csstree-validator"], | ||
"rules": { | ||
"at-rule-no-unknown": null, | ||
"scss/at-rule-no-unknown": true, | ||
"csstree/validator": true | ||
}, | ||
"ignoreFiles": [ | ||
"build/**", | ||
"dist/**", | ||
"**/reset*.css", | ||
"**/bootstrap*.css", | ||
"**/*.js", | ||
"**/*.jsx" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,88 @@ | ||
# Getting Started with Create React App | ||
![](https://img.shields.io/badge/Microverse-blueviolet) | ||
|
||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). | ||
# Premstats | ||
|
||
## Available Scripts | ||
> This is a web app that displays current stats of your favorite Premier League team. | ||
|
||
In the project directory, you can run: | ||
<div> | ||
<img alt="main screenshot" src='./screenshot-1.png' width=90%/> | ||
</div> | ||
<div> | ||
<img alt="my profile page" src='./screenshot-2.png' width=90%/> | ||
</div> | ||
<div> | ||
<img alt="my profile page" src='./screenshot-3.png' width=90%/> | ||
</div> | ||
|
||
### `npm start` | ||
## Built With | ||
|
||
Runs the app in the development mode.\ | ||
Open [http://localhost:3000](http://localhost:3000) to view it in your browser. | ||
- ReactJS | ||
|
||
The page will reload when you make changes.\ | ||
You may also see any lint errors in the console. | ||
## Technologies used | ||
|
||
### `npm test` | ||
- Redux | ||
- React Router | ||
- Sass | ||
- React Testing Library | ||
|
||
Launches the test runner in the interactive watch mode.\ | ||
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. | ||
## Video Presentation | ||
|
||
### `npm run build` | ||
[Video Presentation Link](https://www.loom.com/share/7104a0c8db8f4f5b840de80220809569) | ||
|
||
Builds the app for production to the `build` folder.\ | ||
It correctly bundles React in production mode and optimizes the build for the best performance. | ||
## Live Demo | ||
|
||
The build is minified and the filenames include the hashes.\ | ||
Your app is ready to be deployed! | ||
> Warning! The API has limit of 100 requests per day! | ||
|
||
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. | ||
[Live Demo Link (Netlify)](https://premstats.netlify.app/) | ||
[Live Demo Link (Heroku)](https://premstats.herokuapp.com/) | ||
|
||
### `npm run eject` | ||
## Getting Started | ||
|
||
**Note: this is a one-way operation. Once you `eject`, you can't go back!** | ||
To get a local copy up and running follow these simple example steps. | ||
|
||
If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. | ||
### Prerequisites | ||
|
||
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own. | ||
To run the project on your local machine you need to have: | ||
|
||
You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it. | ||
- bash cli. | ||
- npm. | ||
|
||
## Learn More | ||
### Setup | ||
|
||
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). | ||
Go to the terminal and type: | ||
|
||
To learn React, check out the [React documentation](https://reactjs.org/). | ||
- `git clone https://github.com/anuarshaidenov/premstats.git [YOUR_PROJECT_NAME]` | ||
- `cd [YOUR_PROJECT_NAME]` | ||
- `npm install` | ||
|
||
### Code Splitting | ||
### Usage | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) | ||
To start a local server on port 3000 run: | ||
|
||
### Analyzing the Bundle Size | ||
- `npm start` | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) | ||
## Author | ||
|
||
### Making a Progressive Web App | ||
馃懁 **Anuar Shaidenov** | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) | ||
- GitHub: [@anuarshaidenov](https://github.com/anuarshaidenov) | ||
- Twitter: [@anuarnyi](https://twitter.com/anuarnyi) | ||
- LinkedIn: [anuarshaidenov](https://linkedin.com/in/anuarshaidenov) | ||
|
||
### Advanced Configuration | ||
## Acknowledgements | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) | ||
Design inpired by [Nelson Sakwa](<https://www.behance.net/gallery/31579789/Ballhead-App-(Free-PSDs)>) | ||
|
||
### Deployment | ||
## 馃 Contributing | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) | ||
Contributions, issues, and feature requests are welcome! | ||
|
||
### `npm run build` fails to minify | ||
Feel free to check the [issues page](../../issues/). | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) | ||
## Show your support | ||
|
||
Give a 猸愶笍 if you like this project! | ||
|
||
## 馃摑 License | ||
|
||
This project is [MIT](./MIT.md) licensed. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You made great efforts to make this project. However, there are a few issues that you need to fix.
Acknowledgements
. Please also add this and give appropriate credit to the designer of the project, ok 馃憤