https://github.com/legolasvzla/django-rest-framework-react
Integration between django rest framework, reactjs and postgresql
https://github.com/legolasvzla/django-rest-framework-react
django django-rest-framework python3 reactjs
Last synced: about 2 months ago
JSON representation
Integration between django rest framework, reactjs and postgresql
- Host: GitHub
- URL: https://github.com/legolasvzla/django-rest-framework-react
- Owner: LegolasVzla
- License: mit
- Created: 2018-12-20T02:13:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T05:05:25.000Z (over 2 years ago)
- Last Synced: 2025-01-23T11:19:51.797Z (3 months ago)
- Topics: django, django-rest-framework, python3, reactjs
- Language: Python
- Homepage:
- Size: 5.13 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This is my own django repository
------------------------djangoreactAnimalRescue
------------------------
This is a basic django project to show the integration with rest-framework, react and redux.Create your virtualenv and install the requirements:
virtualenv virtual_name --python=python3
source virtual_name/bin/activatepip install -r requirements.txt
Run the migrations:
python manage.py makemigrations
python manage.py migrate
Run the server:
python manage.py runserver
You could see the home page in:
http://127.0.0.1:8000/
And the API typing in your browser the URL:
http://127.0.0.1:8000/api/animals
Where **animals** is the Model. This endpoint has been defined in the **animals/urls** app. It's possible to get/post/ data stored in the **animals** (or other model that you've defined). Also you can add new elements and check the json response.
See more about Django rest framework in the documentation below:
https://www.django-rest-framework.org/
Contributions
------------------------All work to improve performance is good
Enjoy it!