Django REST 框架/React快速入门
Django REST 框架/React快速入门
Python Web开发框架
共216Star
详细介绍
django-drf-react-quickstart
Django REST framework / React quickstart
django-rest-react-pycon for a more recent version.
The following repo is no longer maintained and should be taken only as a loose guideline for structuring your Django/React project. Please check outDevelopment
- Install Python dependencies:
pipenv install
- Install Javascript dependencies:
npm i
- Make the bundle:
npm run dev
- Migrate:
pipenv run python ./project/manage.py migrate
- Populate the database:
pipenv run python ./project/manage.py loaddata leads
- Run locally:
pipenv run python ./project/manage.py runserver
- Head over http://127.0.0.1:8000/
Test
- Unit:
cd project && pipenv run python manage.py test
- E2E:
npm run e2e
- Coverage:
cd project && pipenv run coverage run manage.py test
Production
- Make the bundle:
npm run build
- ... TODO
TODO
- Authentication
- React routing
- Production
Meta
Valentino Gagliardi - valentinog.com - valentino@valentinog.com
-
129 Star
-
1 Star
-
306 Star
-
18725 Star
-
2009 Star
-
1410 Star
-
26 Star