This is a simple "To-Do List" application built using Flask for the backend and ReactJS for the frontend. The application allows users to add, delete, and view tasks.
- Add tasks with different pencil colors
- Delete tasks
- View a list of tasks
-
Clone the repository:
git clone https://github.com/yourusername/flask-react-todo.git cd flask-react-todo
-
Set up a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows use `.\venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Run the Flask server:
python app.py
- GET /tasks: Retrieve the list of tasks
- POST /tasks: Add a new task
- DELETE /tasks/:task_id: Delete a task by ID
-
Navigate to the
frontend
directory:cd frontend
-
Install the required packages:
npm install
-
Install Axios for making HTTP requests:
npm install axios
-
Start the React development server:
npm start
- Open your browser and navigate to
http://localhost:3000
. - Add tasks using the input field and the "Add Task" button.
- Delete tasks using the "Delete" button next to each task.
- Change the pencil color using the color picker.
This project is licensed under the MIT License. See the LICENSE file for details.
- Flask: https://flask.palletsprojects.com/
- React: https://reactjs.org/
- Axios: https://github.com/axios/axios