Django REST 框架/React快速入门

网友投稿 625 2022-10-20

Django REST 框架/React快速入门

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小时内删除侵权内容。

上一篇:图文并茂:JVM内存布局详解
下一篇:使用feign调用接口时调不到get方法的问题及解决
相关文章

 发表评论

暂时没有评论,来抢沙发吧~