-
Notifications
You must be signed in to change notification settings - Fork 4
Inspirace (články)
Lukáš Rod edited this page Feb 4, 2023
·
12 revisions
- https://blog.logrocket.com/dockerizing-django-app/
- https://realpython.com/django-development-with-docker-compose-and-machine/
- https://testdriven.io/blog/dockerizing-django-with-postgres-gunicorn-and-nginx/
- https://adamj.eu/tech/2019/04/10/how-to-score-a+-for-security-headers-on-your-django-website/
- https://medium.com/@brixlabs/implementing-content-security-policy-csp-in-django-site-a1df8f1c4f5d
- https://blog.dareboost.com/en/2018/03/deploying-csp-a-5-step-approach/
- https://dev.to/mattferderer/what-is-csp-why--how-to-add-it-to-your-website-28df
- https://www.root.cz/clanky/bezpecnejsi-web-s-hlavickou-content-security-policy/
- https://securityheaders.cz/csp
vychazi mj. z:
- https://github.com/gaearon/react-hot-loader#typescript + https://github.com/gaearon/react-hot-loader/tree/master/examples/typescript
- https://www.typescriptlang.org/docs/handbook/react-&-webpack.html
- https://www.typescriptlang.org/docs/handbook/migrating-from-javascript.html
- https://github.com/microsoft/TypeScript-Babel-Starter
- https://github.com/a-tarasyuk/react-webpack-typescript-babel
- https://eslint.org/blog/2019/01/future-typescript-eslint
- https://github.com/typescript-cheatsheets/react-typescript-cheatsheet
- https://medium.com/@martin_hotell/10-typescript-pro-tips-patterns-with-or-without-react-5799488d6680
HOC v TS:
- https://medium.com/@xfor/typescript-react-hocs-context-api-cb46da611f12
- https://stackoverflow.com/questions/51083920/how-to-handle-props-injected-by-hoc-in-react-with-typescript
- https://github.com/typescript-cheatsheets/react-typescript-cheatsheet/blob/master/HOC.md
- https://www.pluralsight.com/guides/higher-order-composition-typescript-react
dalsi inspirace:
- https://www.sanity.io/blog/from-flow-to-typescript
- https://jamie.build/adopting-flow-and-typescript.html
- https://blog.logrocket.com/choosing-between-babel-and-typescript-4ed1ad563e41/
-
nwb s pomocí tutoriálu
- HMR: viz. nwb faq - využití nového react-hot-loader spolu s nádstavbou React-🔥-Dom pro fungování hooků
* nastavení Webpacku a Djanga: http://v1k45.com/blog/modern-django-part-1-setting-up-django-and-react/
* super vysvětlení - https://www.techiediaries.com/django-react-rest/
* popis autora nástrojů - http://owaislone.org/blog/modern-frontends-with-django/, http://owaislone.org/blog/webpack-plus-reactjs-and-django/
- checklist
-
deployment settings
- http://whitenoise.evans.io/en/stable/
- https://devcenter.heroku.com/articles/deploying-python
- https://github.com/sundayguru/django-react-heroku
- https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Deployment
- travis + heroku: https://docs.travis-ci.com/user/deployment/heroku/
- +inspirace: https://tutorial-extensions.djangogirls.org/en/heroku/ a https://simpleisbetterthancomplex.com/tutorial/2016/08/09/how-to-deploy-django-applications-on-heroku.html
- +inspirace pro nodejs: https://medium.com/@nicholaskajoh/deploy-your-react-django-app-on-heroku-335af9dab8a3
- inspirace pro proměnné prostředí: https://mitchel.me/2016/settings-management-in-django/
- custom serializer for nested resources
- best practises
- jednoduchá práce s DRF
- test driven api v DRF
- inspirace propojeni django, rest, react s reduxem
- struktura v reactu podle tohoto
- problematika ukládání tokenu (localstorage vs cookie)
- https://stormpath.com/blog/where-to-store-your-jwts-cookies-vs-html5-web-storage
- https://www.youtube.com/watch?v=WzfJgCOMIsU&feature=youtu.be&t=22m10s
- https://auth0.com/blog/ten-things-you-should-know-about-tokens-and-cookies/#xss-xsrf
- https://auth0.com/blog/cookies-vs-tokens-definitive-guide/
- https://www.rdegges.com/2018/please-stop-using-local-storage/
- https://auth0.com/docs/security/store-tokens
- i s komentáři s protinázory: https://medium.com/@rajaraodv/securing-react-redux-apps-with-jwt-tokens-fcfe81356ea0
- https://spectrum.chat/thread/a051f64d-8103-48e4-92f8-99fc701a7ae9
- dokumentace: základ od react-routeru, djangorestframework-jwt
- inspirace: https://github.com/curtisgreene/message, vetsi inspirace: https://hptechblogs.com/using-json-web-token-react/
- hezký popis: https://medium.com/vandium-software/5-easy-steps-to-understanding-json-web-tokens-jwt-1164c0adfcec
- přihlášení na podobný princip jako: https://stackoverflow.com/questions/49819183/react-what-is-the-best-way-to-handle-authenticated-logged-in-state
- inspirace pro protected router v Context API
- Pro zrychlení načítání se používá lazy loading a
React Suspense
(vše zaobaleno v error-boundary pro správné fungování) - viz oficiální dokumentace a další hezké články 1, 2, 3
- blog o djangu+react+rest
- 8 no-Flux strategies for React component communication
- Habits of Successful React components
-
knihy:
- React design patterns and best practices (ISBN: 978-1-78646-453-8)
- Don't make me think, revisited (ISBN: 978-0-321-96551-6)