Code Monkey home page Code Monkey logo

pytodo's Introduction

pytodo

Gitter

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

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

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')

Community Channel

Join the converstaion on Gitter

pytodo's People

Contributors

parth-paradkar avatar singh-yashwant avatar thisisshub avatar

Watchers

James Cloos 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.