Skip to content

ArdaAlp/API-TodoApp-Flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Flask SQLite License HTML5 CSS3

πŸ“ TodoApp

A simple and elegant Todo application built with Flask and SQLite3. Create, manage, and organize your tasks with a clean and intuitive interface.

✨ Features

  • βœ… Create new todos with title and content
  • πŸ’Ύ SQLite3 database for persistent storage
  • 🎨 Bootstrap 5 responsive UI
  • πŸ“± Mobile-friendly design
  • ⚑ Flash messages for user feedback

πŸ› οΈ Technologies Used

  • Backend: Flask (Python)
  • Database: SQLite3
  • Frontend: HTML, CSS, Bootstrap 5
  • Template Engine: Jinja2

πŸ“‹ Prerequisites

  • Python 3.7 or higher
  • pip (Python package installer)

πŸš€ Installation

  1. Clone the repository:

    git clone https://github.com/ArdaAlp/TodoApp.git
    cd TodoApp
  2. Install dependencies:

    pip install -r requirements.txt
  3. Run the application:

    flask run
  4. Open your browser and navigate to:

    http://127.0.0.1:5000
    

πŸ“ Project Structure

TodoApp/
β”‚
β”œβ”€β”€ app.py              # Main Flask application
β”œβ”€β”€ db.py               # Database functions
β”œβ”€β”€ requirements.txt    # Python dependencies
β”œβ”€β”€ README.md          # Project documentation
β”‚
β”œβ”€β”€ static/
β”‚   └── index.css      # Custom CSS styles
β”‚
β”œβ”€β”€ templates/
β”‚   └── index.html     # Main HTML template
β”‚
└── todos.db           # SQLite database (created automatically)

πŸ’» Usage

  1. Enter a title and content for your todo
  2. Click "Create Todo" button
  3. Your todo will be saved to the database
  4. Success message will be displayed

πŸ”§ Configuration

The application uses a secret key for session management. You can change it in app.py:

app.secret_key = 'your-secret-key-here'

πŸ“ Database Schema

CREATE TABLE todo (
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    title TEXT NOT NULL,
    content TEXT NOT NULL,
    date_created TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)

🀝 Contributing

Contributions, issues, and feature requests are welcome!

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“„ License

This project is open source and available under the MIT License.

πŸ‘€ Author

Arda Alp

πŸ™ Acknowledgments

  • Flask documentation
  • Bootstrap team for the amazing CSS framework
  • SQLite for the lightweight database solution

⭐ Don't forget to star this repository if you found it helpful!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks