see https://www.youtube.com/watch?v=38XWpyEK8IY
pip install django==4.2
pip install djangorestframework
pip install django-cors-headers
pip install coreapi
pip install coreapi-cli
- see https://pypi.org/project/django-cors-headers/
- see https://pypi.org/project/django-coreapi/ Core API helpers for Django and Django Rest Framework
django-admin startproject myreactrest .
django-admin startapp tasks
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
see https://github.com/FaztWeb/djangorestframework_crud
create the serializer
vscode: select the python version for anaconda
- now create api.py for the viewsets
- now create the routers
- now http://127.0.0.1:8000/ response
- http://127.0.0.1:8000/api/tasks/ Allow to create new taskss
deploy on render.com https://render.com/pricing#compute
Install Vite
npm create vite
cd client
npm install
npm run dev
routers
npm i react-router-dom
npm i react-hot-toast
npm i react-hook-form
npm i axios
install https://marketplace.visualstudio.com/items?itemName=dsznajder.es7-react-js-snippets