Todo application built Django Rest Framework and React.
- Python3
- Clone the project to your machine
[git clone https://github.com/Nandhukriss/Todo-django_rest-React_js.git
- Navigate into the diretory
[cd todo]
- Navigate into the frontend directory
[cd frontend-react]
- Install the dependencies
[npm install]
You will need two terminals pointed to the frontend and backend directories to start the servers for this application.
- Run this command to start the server
[python manage.py runserver]
This API allows you to perform CRUD (Create, Read, Update, Delete) operations on tasks.
- GET
/api/
: Get an overview of available API endpoints.
- GET
/api/task-list/
: Get a list of all tasks.
- GET
/api/task-detail/<str:pk>/
: Get details of a specific task.
- POST
/api/task-create/
: Create a new task.
- POST
/api/task-update/<str:pk>/
: Update an existing task.
- DELETE
/api/task-delete/<str:pk>/
: Delete a task.
Send a GET request to /api/
to get an overview of available endpoints.
Send a GET request to /api/task-list/
to retrieve a list of all tasks.
Send a GET request to /api/task-detail/<str:pk>/
to get details of a specific task.
Send a POST request to /api/task-create/
with the task data in the request body to create a new task.
Send a POST request to /api/task-update/<str:pk>/
with the updated task data in the request body to update an existing task.
Send a DELETE request to /api/task-delete/<str:pk>/
to delete a task.