This is a very simple to-do list. Enjoy!
Below are the major frameworks or library that I used for this project. Also make sure you have them installed in order to run the app on your machine.
To get a local copy up and running follow these simple example steps.
-
Clone the repo
git clone https://github.com/rajojon23/listhonize.git
-
Install NPM packages
npm install
-
Run the front-end watcher
npm run-script watch
-
Activate the python virtual environment
fullstack\Scripts\activate
-
Install Flask
pip install flask
-
Install Flask-CORS
pip install flask-cors
-
Run the back-end server
python server/server.py
-
If all is well, you should be able to use the app by opening the
index.html
file on your preferred browser
The REST API to the app is described below. The database used is SQLite, which is already included with Python. The default name of the database is tasklist.db
GET http://127.0.0.1:5000/api/v1/tasklist/all
POST http://127.0.0.1:5000/api/v1/tasklist/add?task=Reach%20out
{task : "Reach out"}
POST http://127.0.0.1:5000/api/v1/tasklist/delete?task=Reach%20out
{task : "Reach out"}
- Save tasks as completed into the database (tasks that are crossed out)