Skip to content

PranavKrishnaS/blogCLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blogCLI

blogCLI is a simple, command-line based blogsite.

It features secure user data storage with password encryption, and do all of the CRUD [Create, Read, Update, Delete] functionalities

Setup

  • run setup.py
  • then run main.py

Files

  1. setup.py : Contains code for setting up database and creating tables. By default, it generates a data.db in the same folder level as setup.py

  2. crud.py : Contains code for all CREATE,READ,UPDATE and DELETE functions needed for the database.

  3. .venv : Python virtual environment for running code in systems without Python preinstalled. [REMOVED]

  4. data.db : Database where all user and blog related data are stored. Has 2 tables uesrs and blogs

  5. main.py : The main file of blogCLI. Run setup.py atleast once before running this file.

NOTE : To ensure ease of understanding and reducing complexity, all data manipulating operations are done from crud.py. main.py is only responsible for calling necessary functions.

Prerequisites

  • bcrypt for password encryption - (pip install bcrypt)
  • sqlite3 for database management and operations (installed in Python by default)
  • getpass for secure password input (installed in Python by default)

About

A simple, command-line based blogsite demo.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages