https://github.com/parth-paradkar/pytodo
A minimal command line todo list created using Python and MongoDB
https://github.com/parth-paradkar/pytodo
mongodb python todolist
Last synced: 6 months ago
JSON representation
A minimal command line todo list created using Python and MongoDB
- Host: GitHub
- URL: https://github.com/parth-paradkar/pytodo
- Owner: parth-paradkar
- License: mit
- Created: 2019-08-14T17:09:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-19T06:13:44.000Z (over 6 years ago)
- Last Synced: 2025-02-01T04:31:50.592Z (about 1 year ago)
- Topics: mongodb, python, todolist
- Language: Python
- Size: 146 KB
- Stars: 4
- Watchers: 2
- Forks: 9
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pytodo
[](https://gitter.im/pytodo/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
A minimal command line todo list built with Python and MongoDB

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
```
Install dependencies using pip instead
```
sudo pip install -r requirements.txt
```
Create an executable file from the ```script.py``` file
```
cd pytodo/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 /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
```
#### For Fedora users, run the following commands
*Configure the dnf repository*
```
sudo vi /etc/yum.repos.d/mongodb.repo
```
*Install Mongodb*
```
sudo dnf update
sudo dnf install mongodb-org
```
*Start the Mongodb service*
```
sudo systemctl enable mongod.service
sudo systemctl start mongod.service
```
#### For Arch users, run the following commands
Aur package at [mongodb 4.2.1-1](https://aur.archlinux.org/packages/mongodb/)
### Creating a local database
Start the mongo shell and create a new database with two collections to store the todos and Configurations
```
mongo
use todo-app
db.createCollection('todos')
db.createCollection("config")
db.config.insert({"quote":true})
```
## Using the TODO application
To view the list of commands to use the todo application type
```
pytodo -h
```
## Community Channel
Join the converstaion on [Gitter](https://gitter.im/pytodo/community?utm_source=share-link&utm_medium=link&utm_campaign=share-link)