Giter VIP home page Giter VIP logo

project_3_python's Introduction

Car Manufacturer Survey


The Car Manufacturer Survey Python terminal is designed for the collection of survey data to be easily input to a google sheet document.
Click Here to go to the live website.

Responsive site test


How it works

  • The user follows the instructions printed at the top of the terminal. Entering the 10 numbers separated by comma's from the survey results.
  • The terminal runs and gives updates and feedback to the user that their input is valid and that its updating the sheet and finally when the sheet has updated successfully.
  • Once the terminal has updated the sheet and verified to the user it was successful, it prints the current survey totals.
  • The google sheet is updated with the data and returns the totals with a SUM within the sheet at the top.

Terminal preview


google sheet results updated


Features

  • Instructions to the user.
  • Feedback and updates while running.
  • Prints current totals after each data input.
  • Has a loop at the end that asks if the user wants to enter more data (restarts) or not (ends all functions)

Future features

  • Survey sheet selection for multiple surveys. This is why there are f strings in the current code for "scoreboard" sheet.

Technologies Used

  • Python 3 - coding language.
  • API - google sheet API.
  • Git - Version control by utilizing the Gitpod terminal to add and commit to Git then Push to GitHub.
  • Git Hub - stores the project code and hosts the website.
  • Visual Code Studio - system used to write code via Git
  • Paint 3D - to create the logo and edit screenshots for the README.md
  • Heroku - for hosting the python code and downloading requirements.
  • Pep8 - testing code.

Deployment

Heroku

The project was deployed to Heroku via GitHub by:
  1. Logging Into Heroku, selecting my project, going to the settings page and adding the two required build packs (python) (nodejs).
  2. Going to deploy, selecting deployment method as GitHub and typing in the GitHub repository name.
  3. Finally you can select deploy branch to manually deploy or select automatic deployment (allows Heroku to rebuild the project after each push to GitHub.
The page is now published and the link is in the sett section at the bottom in Domains.

Making a Local Clone

  1. Log in to GitHub and locate the [GitHub Repository](https://github.com/)
  2. Under the repository name, click "Clone or download".
  3. To clone the repository using HTTPS, under "Clone with HTTPS", copy the link.
  4. Open Git Bash
  5. Change the current working directory to the location where you want the cloned directory to be made.
  6. Type `git clone`, and then paste the URL you copied in Step 3.
  7. Press Enter. Your local clone will be created.
  8. Create a new Heroku app and follow the steps in Heroku deployment above.

Click Here for retrieve pictures and more detailed explanations of the above process.


Testing

Manual test

  • Given invalid input such as letters and incorrect amount of data, both resulting in a succesful error message.
  • Tested in the Code Institute Heroku terminal and my local terminal.

Softwares

Bugs & Fixes

  • Pep8 picked up a random blank line in a """ message """. Fix - deleted the blank line.
  • Pep8 also picked up a print statement with an unused f string inside. Fix - remove f string from print statement.
  • Microsoft Visual Studio internal validator showed me that a "from" and "import" were not used but in the code. Fix - deleted said "from" and "import" then tested code again with no errors.

Known Bugs

  • So far through my testing I have not identified any more known bugs after my fixes. There is however a potential problem if the survey input is submitted over 100 times. The totals will only update 100 times unless you modify the SUM in the google sheet directly.

Sources/Credits


  • My Mentor for her feedback.
  • Code Institute for thier deployment terminal template from GitHub
  • Code Institute's Love_sandwiches walkthrough provided a very clear idea on how to create a data entry project. GitHub Link
  • Gathered information and troubleshooting from Stackoverflow

project_3_python's People

Contributors

jca-dev 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.