Giter Club home page Giter Club logo

fruits_of_labor's Introduction

Fruits of Labor

Fruits of Labor is Python terminal program, which runs in the Code Institute terminal in Heroku app.

It is a data automation based on a real life data of products of my parents source of income of our family farm but with a fictional numbers.They post the available products in social media and they get the orders.

The program will ask the user to enter their username before inputting available stocks, orders, cancelled orders and then calculate the total products sold and the surplus to end the program.

Here is the live version of my Fruits of labor data anamation project.

This is a sreenshot image

Testing username input validation

  • If the user entered incorrect input this following will be printed in the terminal:

    • Please enter correct characters not less than 4
    • Please enter characters not more than 10
    • It must be alphabet only

    This is a screenshot image

Testing input validation of available_stocks, orders and cancelled orders

If the user entered incorrect data the following will be printed in the terminal:

  • Please enter available stocks ready for orders
  • Data should be 9 numbers,separated by commas
  • Example: 5,10,15,20,25,30,35,40,45

This is a screenshot image

The methods are the same for orders and cancelled orders. If the data is valid, this will be printed in the terminal

This ia a screenshot image

Checking if the data is sucessfully updated in the worksheet

  • Here are the screenshot images of the data that had been sucessfully update in the workcsheet:

    Available_stocks

    This is screenshot image

    Orders

    This is screenshot image

    Cancelled orders

    This is screenshot image

    Total of products sold

    This is screenshot image

    Surplus

    This is screenshot image

Testing

I have manually tested this project by doing the following:

  • Passed the code through a PEP8 linter, there are trailing whitespace in the code and did a google search and with that information it say that this can be ignored but I will try to learn how to use that function on how to remove it.
  • Tested in my local terminal and the Code Institute Heroku terminal and the program is working.

Bugs

Fixed Bugs

  • I have to abbreviate my variables in surplus_data function as it is too long and removed the continue keyword in the get_username function as hinted in the editor that this cannot be nested in a function.

Deployment

This project was deployed using Code Institute's mock terminal for Heroku.

  • Steps for deployment:
    • Fork or clone repository
    • Create a new Heroku app
    • Set the buildpacks to Python and NodeJS in that order
    • Link the Heroku app to the repository
    • Click on Deploy

Contents

  • Contents are coded by the developer and some ideas are taken from the Love Sanwiches walkthrough project from CODE INSTITUTE.

Credits

  • CODE INSTITUE for the deployment terminal and Love Sandwiches walkthrough project, as I use this as a guide and some text contents are copied from it.
  • GOOGLE SHEETS for the worksheet used for this project.
  • GOOGLE API to access the woksheet.

fruits_of_labor's People

Contributors

markpm-code 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.