A Task management application that allows users to add, view, and delete tasks. Built with Django for the backend and React for the frontend.
- Add new task.
- VIews a list of all tasks.
- Delete task
- Responsive UI Built with React.
- Restful API built eith Django.
- Frontend: React,Tailwind
- Backend: Django, Django REST Framework
- Database: SQLite.
- State Management: useContext, Reducers
- python 3.10.12
- Node.js
- Django
- Django REST Framework
- React
-
Clone the repo:
git clone https://github.com/alexander784/Kangacook.git
cd Kangacook
-
Install dependecies:
pip install -r requirements.txt
3. Run migrations and start the djano development server.
python3 manage.py migrate
python3 manage.py runserver
-
Navigate to the frontend directory:
cd client
-
Install dependecies.
npm install
-
Start the React development server:
npm start
- Go to the
Add Task
section on the homepage. - Enter the task title and description.
- Click the
Add Task
button to submit.
- All tasks are listed on the homepage.
- The task list displays the title and description of each task.
- Click the "Delete" button next to the task you want to remove.
- The task will be removed from the list.
State is managed globally using React's useContext hooks and reducers:
Context Provider: Wraps the application, providing state and dispatch functions to components.
Reducer: Handles state updates for adding, deleting, and fetching tasks.
GET /task_app/: Fetch all tasks
POST /task_app/: Add a new task
DELETE /tasks_app/{id}/: Delete a task by ID
This project is licensed under the MIT License. See the LICENSE file for more details.