Skip to content

FormaServe/python-todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FormaServe Training - Python Examples

This repository showcases FormaServe’s training capabilities and provides a simple TODO application that runs on any platform, including the IBM i.

Features

  • Add, update & delete TODO items
  • Mark items as completed
  • Cross-platform compatibility. Can run on the IBM i Power servers.

Installation

Clone this repository to your local machine

git clone https://github.com/FormaServe/python-todo

Before installing dependancies, it is recommended to use virtual environments to install and run this application. See Virtual Environments section if you are unsure to use virtual environments.

Install dependencies

pip install bottle

Create the SQLite Database

If you do not want to use our version of the database, delete the file todo.db & recreate it using the python below.

python create-db.py

Start the TODO app

python index.py

Then in an internet browser, open the application at the following URL http://localhost:8080/

Virtual Environment

As with all python projects, it is recommended to run this application in a virtual environment.

Follow the instructions below to get started.

Create the Virtual Environment

Use the venv module to create a virtual environment inside the project folder. Run the following command:

python -m venv --system-site-packages .venv

Replace .venv with your preferred name for the virtual environment if you do not want to use our preference.

Activate the Virtual Environment

To activate the virtual environment, use the appropriate command based on your operating system:

On Windows

.venv\Scripts\activate

On macOS, Linux or IBM i

source .venv/bin/activate

Deactivate the Virtual Environment

When you’re done working in the virtual environment, deactivate it:

deactivate

Remember to activate it whenever you work on your project. 😊

Sponsoring

If you've found this repository useful and it has helped you in your development journey, please consider showing your support. ❤️
A cup of coffee goes a long way in fueling my late-night coding sessions & your sponsorship can help ensure the longevity and improvement of this project.
You can Buy Me a Coffee ☕ or check out the Sponsorship options available.
Every bit of support is greatly appreciated!

License

This project is licensed under the MIT License. See the LICENSE file for details.

Authors

Acknowledgments

  • Andy Youens - FormaServe Systems Ltd 1990 - All rights reserved.
  • Nick Youens - FormaServe Systems Ltd 1990 - All rights reserved.
  • Jane Youens - FormaServe Systems Ltd 1990 - All rights reserved.

Copyright © 2024 FormaServe Systems Ltd

About

FormaServe Training Example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published