create-react-app-django
reactivated
Our great sponsors
create-react-app-django | reactivated | |
---|---|---|
1 | 12 | |
0 | 596 | |
- | - | |
0.0 | 8.4 | |
over 3 years ago | 12 days ago | |
Python | ||
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.
create-react-app-django
-
Show HN: Django and React SaaS boilerplate tutorial
Yes. I have large portions of a server-rendered, stateful web application that leverages django’s view/templating.
However, being new to React I wanted to bring a single react “app” into the django project using a django template that includes the use of the same navbar template used by every other page in the site.
While it doesn’t support N react apps bundles at this time I could see it being done provided they share a single package file.
One important point for me was that this also be done using an unejected base CRA project, so that it would enjoy all of the benefits of the CRA standard dev and production build capabilities.
This was no small feat because I’m relatively new to modern web front end toolchains and in fact I ended up rewriting almost all of the user documentation for CRACO as part of my learning process.
Which is a key point I was able to accomplish this by using a mix of CRACO and options available to a standard CRA application.
In particular the package.json postbuild script action which moves and renames files to nestle assets into their proper place in a django static path.
I have not released my solution but I have stubbed out the problem and solution description here: https://github.com/banagale/create-react-app-django
reactivated
-
What is the best auth method for django rest framework?
Though it's not in the main branch, I've POC-ed a lot of it and use it in production on this branch. You can... sort of see the ideas behind it. https://github.com/silviogutierrez/reactivated/pull/207
-
Can i host my django app under 10$?
https://www.reactivated.io/documentation/deploying/ https://github.com/silviogutierrez/reactivated/blob/main/development/scripts/deploy.sh https://github.com/silviogutierrez/reactivated/blob/main/development/Dockerfile
-
Six things I do every time I start a Django project
Theoretically, the Dockerfile should "just work"™ with Render.com as well. Right now I focus on fly.io only because their free tier offers PostgreSQL without time limits. Render, I believe, only does so for a period of time.
See here: https://github.com/silviogutierrez/reactivated/blob/main/dev...
https://github.com/silviogutierrez/reactivated/blob/main/dev...
https://github.com/silviogutierrez/reactivated/blob/main/dev...
- Best free and speedy hosting of small django project?
-
The absurd complexity of server-side rendering
Shameless plug: If you want seamless SSR with Django logic, but React templates, check out my project at https://www.reactivated.io .
It's like HTMX but uses React, and the JS bits are rendered on the server. You can then hydrate on the client.
The Reactivated docs site itself uses the project: https://github.com/silviogutierrez/reactivated/tree/main/web...
-
Reactivated — Zero-configuration Django and React
Here's one https://github.com/silviogutierrez/reactivated/blob/main/website/client/templates/HomePage.tsx
You can use any React library with Reactivated. Here's an example from the site, using react-markdown just like you would anywhere else: https://github.com/silviogutierrez/reactivated/blob/91d87e66c61c849895cabcc1ce07574111084c3a/reactivated.io/client/templates/Documentation.tsx
-
This Week in Python
reactivated – Zero-configuration Django and React.
- can I deploy django project in AWS, Google cloud or azure for free?
-
Show HN: Django and React SaaS boilerplate tutorial
That's exactly what https://github.com/silviogutierrez/reactivated does. It's a work in progress and docs are coming.
But it's the best of both worlds: Django SSR using statically typed JSX.
See for example my blog or business sites (on profile). Both SSRed by Django using React templates.
Then when the client loads, it gracefully "attaches" for dynamic interactive behavior as needed.
By far the biggest pain point is having to run node and python on the server. So I'm working on the best way to do that.
What are some alternatives?
cookiecutter-react-django - From hello world to Heroku deployment, using separated Front and Back Ends
drf-excel - An XLSX spreadsheet renderer for Django REST Framework.
django-webpack-loader - Transparently use webpack with django
react-async-component - Resolve components asynchronously, with support for code splitting and advanced server side rendering use cases.
django-react-boilerplate - DIY Django + React Boilerplate for starting your SaaS
django-sockpuppet - Build reactive applications with the django tooling you already know and love.
django-components - Create simple reusable template components in Django.