This application is a simple to-do list that allows the user to add and remove items. The application is built using a Flask API, HTML, CSS, and JavaScript.
- api.py: Contains the Flask API that handles the to-do list functionality.
- index.html: Contains the HTML code for the user interface of the application.
- script.js: Contains the JavaScript code that handles the user interface functionality.
- styles.css: Contains the CSS code that styles the user interface of the application.
- data.json: Contains the to-do list data that is loaded and saved by the Flask API.
- main.py: Contains the command-line interface for the to-do list application.
To run the application, you can either run the Flask API by running python api.py in the command prompt, or you can run the command-line interface by running python main.py.
Once the application is running, you can access the to-do list in your web browser by navigating to http://localhost:5000/.
To add an item to the to-do list, enter the item in the "Add a to-do item..." input field and click the "Add" button.
To remove an item from the to-do list, enter the number of the item in the "Enter item number..." input field and click the "Remove" button.
This application has one additional file main.py, which is a command-line interface for the to-do list application.