Skip to content

ToDo List App is a kind of app that generally used to maintain our day-to-day tasks or list everything that we have to do, with the most important tasks at the top of the list, and the least important tasks at the bottom. It is helpful in planning our daily schedules.

Notifications You must be signed in to change notification settings

joseph-mathias/flask-todo-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python-FLASK To Do App

ToDo List App is a kind of app that generally used to maintain our day-to-day tasks or list everything that we have to do, with the most important tasks at the top of the list, and the least important tasks at the bottom. It is helpful in planning our daily schedules.

Requirements

  • python

  • flask

  • sqlalchemy

  • flask_sqlalchemy

  • Jinja 2

Sections

Header

This To-Do App is made using Flask Python Framework. The data on the To-Do App is directly store on an SQLite3 Database file. Any changes(update/delete) to the The To-Do's can will remain. The changes will then be reflected on to the To-Do's App. This allows you to customize your own personal To-Do's that can be used for applying to jobs or other personal uses.

Make Sure You Have Python Installed!

Firstly, you will need to download python Secondly, you will have to pull all the installed libraries from requirements.txt

    $ pip install -r requirements.txt

To-Dos's App website

Routing

@app.route('/', methods=['POST', 'GET'])
def index():
    if request.method == 'POST':
        task_content = request.form['content']
        new_task = Todo(content=task_content)

        try:
            db.session.add(new_task)
            db.session.commit()
            return redirect('/')
        except:
            return "There was an error adding you data to the Todo App"

    else:
        tasks = Todo.query.order_by(Todo.date_created).all()
        return render_template('index.html', tasks=tasks)

TODO: Host To-DO App Online


  • using gunicorn server
    $ pip install gunicorn
    
  • Go to Heroku and set up a profile Reminder You need to have Git installed then Heroku-setup

DOCS

  1. HEROKU

  2. GIT

About

ToDo List App is a kind of app that generally used to maintain our day-to-day tasks or list everything that we have to do, with the most important tasks at the top of the list, and the least important tasks at the bottom. It is helpful in planning our daily schedules.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published