Skip to content

A minimal command line todo list created using Python and MongoDB

License

Notifications You must be signed in to change notification settings

BishtShivani/pytodo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pytodo

A minimal command line todo list built with Python and MongoDB

Mongo + Python

Living in the command line is blissful. Keeping your things together sometimes isn't. Track your tasks and deadlines with this command line app built with Python and MongoDB

Installation

Installing Python libraries

This project uses pipenv to manage dependencies, so make sure you have pipenv installed.

pip install pipenv

Clone this repository

git clone https://github.com/thescriptninja/pytodo.git

Use pipenv to install the dependencies

pipenv install

Create an executable file from the script.py file

cd pytodo/
cp script.py script
sudo chmod +x script

Add the following line in .bashrc file after replacing CLONED_REPO_PATH with the absolute path to the cloned repository.

alias pytodo='python3 <CLONED_REPO_PATH>/pytodo/script

Installing MongoDB

Download the required MongoDB package the package repository. For Ubuntu, run the following commands

sudo apt update
sudo apt install -y mongodb

Creating a local database

Start the mongo shell and create a new database with a collection to store the todos

mongo
use todo-app
db.createCollection('todos')

About

A minimal command line todo list created using Python and MongoDB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%