cookiecutter-react-django
react-async-component
Our great sponsors
cookiecutter-react-django | react-async-component | |
---|---|---|
1 | 1 | |
132 | 1,447 | |
- | - | |
4.9 | 0.0 | |
2 days ago | over 1 year ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cookiecutter-react-django
-
Show HN: Django and React SaaS boilerplate tutorial
In case you're looking for something similar, but django-boilerplate doesn't adjust, try cookiecutter-react-django instead. It has Heroku deployment, and a minimalistic approach.
https://github.com/ohduran/cookiecutter-react-django
react-async-component
-
Show HN: Django and React SaaS boilerplate tutorial
I've spent many years working on django including production setups for 3 different companies. My strong advice is to only use Django for API calls (DRF) and the built in admin UI. Do not use Django for ANY client facing static site rendering.
1. Deploy the React static pages and JS/CSS resources completely separately from Django. Cloudfront/S3 is my personal choice. You will need to tweak the CORS_ORIGIN_WHITELIST and CORS_ALLOW_HEADERS in the django settings but that's relatively easy.
2. Use Gatsy or something similar to help you with static site generation using react. Remember: React is in charge of HTML/JS/CSS of any type and Django should not get involved.
3. Use https://github.com/ctrlplusb/react-async-component or something similar to help break up your SPA so the browser doesn't have to load all of it at once and only loads smaller components on an as needed basis.
Don't mess with webpack and eject unless you have a very specialized need that cannot be addressed with everything out there.
What are some alternatives?
django-react-boilerplate - DIY Django + React Boilerplate for starting your SaaS
loadable-components - The recommended Code Splitting library for React ✂️✨
Next.js - The React Framework
django-sockpuppet - Build reactive applications with the django tooling you already know and love.
heroku-nextjs - ⏩ Deploy Next.js universal web apps to Heroku
create-react-app-django - Easily Run a Create React App in a normal Django Template View
django-webpack-loader - Transparently use webpack with django
django-react-boilerplate - Django 5, React, Bootstrap 5 with Python 3 and webpack project boilerplate
cash - An absurdly small jQuery alternative for modern browsers.