- Esta App muestra información sobre el clima para la ciudad acutal así como también el pronóstico para los próximos cinco días. También permite obtener la misma información de hasta 5 ciudades más.
- Desarrollado con React mediante la herramienta Create-React-App.
- Se utiliza el API de la carpeta backend para obtener y mostrar datos del clima de Open Weather Map.
- Github pages:
- Firebase:
- Vercel:
- Netlify:
- cd frontend
- Actualizar el archivo .env (crearlo copiando .env.example) con el siguiente contenido:
REACT_APP_API_URL
- npm start
Para hacer el deploy de la aplicación, se debe hacer lo siguiente:
- Asegurarse de hacer el build con la variable de entorno siguiente correctamente actualizada en el archivo
.env
:REACT_APP_API_URL=url_de_la_api_de_backend
- En caso de querer deployar a Github pages, agregar al package.json:
"homepage":"https://yourusername.github.io/repository-name"
npm run build
- npm test
- npm run test:coverage (Luego abrir el archivo: frontend\coverage\lcov-report\index.html)
-
https://developer.mozilla.org/es/docs/Web/JavaScript/Reference/Global_Objects/Promise/all
-
https://stackoverflow.com/questions/53038032/typeerror-promise-is-not-iterable
-
https://www.youtube.com/watch?v=G2FoSpsq3Rw&t=972s&ab_channel=FaztCode Github Pages | Sitios Estaticos Gratis con gh-pages (y Nodejs)
-
https://daily-dev-tips.com/posts/react-snapshot-testing-with-jest/
-
facebook/create-react-app#9935 Proposal: Revert override of jest default resetMocks
-
jefflau/jest-fetch-mock#194 (comment) Getting TypeError: isMocking is not a function or its return value is not iterable
-
https://developer.mozilla.org/es/docs/Web/JavaScript/Reference/Global_Objects/String/fromCodePoint
-
https://stackoverflow.com/questions/42398660/how-to-display-emoji-in-react-app
-
https://www.mclibre.org/consultar/htmlcss/html/html-unicode-dibujos.html
-
https://stackoverflow.com/questions/52508144/jest-test-succeed-with-error-printed-to-console
-
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/header
-
https://github.com/kentcdodds/react-testing-library-examples
-
https://stackoverflow.com/questions/63427988/react-testing-library-match-number-of-buttons
-
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles
-
https://stackoverflow.com/questions/26934719/do-i-need-role-button-on-a-button
-
https://dev.to/noriste/from-unreadable-react-component-tests-to-simple-stupid-ones-3ge6
-
https://stackoverflow.com/questions/54234515/get-by-html-element-with-react-testing-library
-
https://noriste.github.io/reactjsday-2019-testing-course/book/intro-to-react-testing/jest-dom.html
-
https://create-react-app.dev/docs/setting-up-your-editor/#formatting-code-automatically - husky/lint-staged/prettier
-
https://github.com/testing-library/eslint-plugin-testing-library
-
https://kentcdodds.com/blog/common-mistakes-with-react-testing-library
-
https://stackoverflow.com/questions/63696265/how-to-get-a-code-coverage-report-with-react-create-app
-
https://www.youtube.com/watch?v=KYjjtRgg_H0&ab_channel=midudev TESTING en REACT 🧪 ¡Aprende DESDE CERO! Con react-testing-library y Jest (FullStack Bootcamp JS)
-
https://www.freecodecamp.org/news/how-to-create-a-react-app-with-a-node-backend-the-complete-guide/