Django-React-Boilerplate Django与React集成样板

Django 项目的 React 前端整合,真的不用再自己折腾了。django-react-boilerplate这个样板直接帮你打包好了一整套开发配置,连Bootstrap 4WebpackCelery这些都配好了,拿来就能用,挺省心的。

React 的组件化写前端挺舒服,配上django-webpack-loader,页面联动也流畅。你想前后端同步走?直接在 JS 里用django.urls生成 URL,方便得。

Heroku 部署也考虑到了,app.json和生产用的production.py都在。想上线的话,基本上点几下 Heroku 按钮就能跑起来。你甚至能连PostgreSQLRedis插件都配好,一条龙服务。

自动化部分也没少,CI 用的是CircleCI,里面已经写好了.circleci/config.yml,跑测试、打包都能自动来。虽说不能完全替代你写测试代码,但起码把流程拉起来了。

如果你是Django 老手,又想试试 React 加点前端交互,这个模板用起来真是蛮爽的。不用从零搭,节省不少搭环境的时间。适合那种想快速起项目、又懒得琢磨各种配置的你。

另外,如果你对 Redis 整合、Heroku 部署这些还不熟,可以看看这些文章:

folder
django-react-boilerplate:Django,React,带有Python 3的Bootstrap 4和webpack项目样板 预估大小:122个文件
file
Dockerfile 102B
file
.dockerignore 31B
file
.bandit 134B
file
dev-requirements.in 166B
file
.env.example 94B
file
Dockerfile 840B
file
local.py.example 34B
file
sentry_init.html 107B
file
index.html 1KB
file
detail.html 490B
file
results.html 273B
file
base.html 872B
file
.isort.cfg 299B
file
requirements.in 221B
file
webpack.prod.config.js 2KB
file
.editorconfig 340B
file
.gitignore 519B
file
.eslintignore 44B
file
.coveragerc 102B
file
.bootstraprc 2KB
zip 文件大小:70.07KB