Giter Club home page Giter Club logo

mytodoapp's Introduction

MyTodoApp

A todo app made with Python, Flask and Bootstrap.

Goal

  • Have my own todo app with complete control over my data.
  • Learn me some Flask
  • Create my first Python web app

App

  • I use Visual Studio Code.
  • Created a virtual environment for Python (Python 3.11.2)
  • I am using Windows 11. Haven't tested the code on MacOS or Linux.
  • You will need to install the following Python modules: Flask and Flask-SQLAlchemy
pip install flask
pip install flask-sqlalchemy

app.py

Still based on the code from Alina Chudnova, see version 0.1.0.

importer.py

This is some code that I reuse for many projects. The two functions create a connection to a SQLite database and specify the log-file and file mode (write or append).

It then reads the contents of the new_todo.csv file (current directory). Each line in the file represents a new to do. The script stops reading when it has reached the end of the file or an empty line. This means you can store tasks for the following days in this file. You just have to separate it with an empty line from the tasks you want to import in the database.

History

Version 0.1.5

Date: 26/11/2023

  • Correcting documentation
  • Adding database schema FYI
CREATE TABLE todo_item (
        id INTEGER NOT NULL, 
        content VARCHAR(200), 
        completed BOOLEAN, 
        PRIMARY KEY (id)
);

Version 0.1.4

Date: 25/11/2023

  • Completed cards are now moved to the end of the list.

Version 0.1.3

Date: 25/11/2023

  • Completion of a card / to do can now be checked and unchecked.

Version 0.1.2

Date: 17/10/2023

  • Removed some unnecessary HTML code
  • Added importer.py, a script to easily pump some tasks into the database

Version 0.1.1

Date: 09/10/2023

  • No changes to the Python code
  • Switched from using Bootstrap 4 (used in YouTube tutorial) to Bootstrap 5
  • Tasks are now shown as Bootstrap cards instead of a simple list.

Screenshot v0.1.1

Version 0.1.0

Date: 08/10/2023

As it is my first time working with Flask, this version is completely based on the YouTube video Building a Todo List App: Introduction to Flask by Alina Chudnova.

Screenshot v0.1

mytodoapp's People

Contributors

jmares avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.