Code Monkey home page Code Monkey logo

movie-rental-cli-app's Introduction

Movie-Rental-Database

A simple Command Line Interface program which allows a user to rent films, return them and a few other
functionalities.This is achieved by implementing python fundamentals and SQLAlchemy to create 
and interact with the database.

TECHNOLOGY:

Python and SQLAlchemy

SETUP AND INSTALLATION

-Clone the repository from Github:
    1. Run ($ git clone [email protected]:StevenMolvin/Movie-Rental-Database.git) in your desired
       directory on your terminal.
    2. Navigate into the directory created.
-To run the code, you will need to have python installed(Skip this step if you have Python):
    https://www.python.org/downloads/ then acquire the version that is compatible with your OS.
    or via the terminal: 
    a) MacOS
        1. $ brew update && brew upgrade
        2. $ brew install python3.11
    
    b)Linux/ Ubuntu
        1. $ sudo apt-get update && sudo apt-get upgrade
        2. $ sudo apt-get install python3.11

-Install SQLAlchemy(Skip this step if you already have it):
    Open your terminal and run:
        1. $ pip install SQLAlchemy or
        2. $ pip3 install SQLAlchemy or
        3. $ python3 -m pip install sqlalchemy

-Install dependencies:
    Open your terminal, navigate to your remote repository directory and run:
        $ pipenv install
        $ pip install click
        $ pip install rich
        $ pip install tqdm

-Run "python3 cli.py" or "python cli.py" depending on your python version, followed by :
        1. rent-movie: to rent a movie
        2. return-movie: to return a rented movie
        3. list-rented-movies: to view the rented movies table
        4. list-customers: to view the customers table
        5. list-rentals-due: to view the rentals table
    
    for example: $ python3 cli.py list-rentals-due or $ python cli.py list-rentals-due 

-Rent any movie ever released!, Return it!, Check out a list of movies rented out!, Check out a 
list of customers! View a list of movies rented out, by who, when, and when they are due!

AUTHOR

Stephen Mogusu

CONTRIBUTION GUIDELINES

-Fork the project
-Create a new branch ($ git checkout -b <branch_name>)

Changelog

-All notable changes to this project will be documented in this file.

Initial Release

[1.0.0] June 2021

LICENSE

MIT License Copyright (c) 2023 Stephen Mogusu

movie-rental-cli-app's People

Contributors

stevenmolvin 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.