An open API service indexing awesome lists of open source software.

https://github.com/nomilkinmyhome/todo-list

A simple todo list in Flask.
https://github.com/nomilkinmyhome/todo-list

flask python3 sqlalchemy task todo

Last synced: 3 months ago
JSON representation

A simple todo list in Flask.

Awesome Lists containing this project

README

          

## todo-list

A simple todo-list application written in Python 3 with Flask and SQLAlchemy.

Home page: https://nomilkinmyhome-todolistapp.herokuapp.com/

API docs: https://nomilkinmyhome-todolistapp.herokuapp.com/api/v1

![index page](screenshots/index_page.png)

---

### **Database creation**

**In postgresql:**
1. ```CREATE DATABASE todolist_db;```
2. ```CREATE USER todolist_user WITH ENCRYPTED PASSWORD '1';```
3. ```GRANT ALL PRIVILEGES ON DATABASE todolist_db TO todolist_user;```

### **How to run the app**

**In virtual environment:**
1. ```pip install -r requirements-development.txt```
2. ```python manage.py db stamp head```
3. ```CONFIG_FILE=configs/development.cfg python manage.py db upgrade```
4. ```CONFIG_FILE=configs/development.cfg python initialize.py```
5. ```CONFIG_FILE=configs/development.cfg python app.py```

### **Some examples via Postman**

**Authorization**

URL: https://nomilkinmyhome-todolistapp.herokuapp.com/api/v1/auth/login

![auth](screenshots/login.png)

**Todo creation**

URL: https://nomilkinmyhome-todolistapp.herokuapp.com/api/v1/todo/create

![todo creation](screenshots/creation.png)

**Todo editing**

URL: https://nomilkinmyhome-todolistapp.herokuapp.com/api/v1/todo/1

![todo creation](screenshots/editing.png)