后台小程序开发的全方位指南
625
2022-10-20
Django REST 框架/React快速入门
django-drf-react-quickstart
Django REST framework / React quickstart
The following repo is no longer maintained and should be taken only as a loose guideline for structuring your Django/React project. Please check out django-rest-react-pycon for a more recent version.
Development
Install python dependencies: pipenv installInstall Javascript dependencies: npm iMake the bundle: npm run devMigrate: pipenv run python ./project/manage.py migratePopulate the database: pipenv run python ./project/manage.py loaddata leadsRun locally: pipenv run python ./project/manage.py runserverHead over http://127.0.0.1:8000/
Test
Unit: cd project && pipenv run python manage.py testE2E: npm run e2eCoverage: cd project && pipenv run coverage run manage.py test
Production
Make the bundle: npm run build... TODO
TODO
AuthenticationReact routingProduction
Meta
Valentino Gagliardi - valentinog.com - valentino@valentinog.com
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~