Skip to content

tiyd-python-2015-01/web-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Web calculator

Description

Create a simple web-based calculator using Flask.

Objectives

Learning Objectives

After completing this assignment, you should understand:

  • The very basics of making a web application

Performance Objectives

After completing this assignment, you should be able to:

  • Create a Flask app

Details

Deliverables

  • A Git repo called web-calculator containing at least:
    • README.md file explaining how to run your project
    • a requirements.txt file
    • a suite of tests for your project

Requirements

  • Passing unit tests
  • No PEP8 or Pyflakes warnings or errors

Normal Mode

Create a simple web application that works as a calculator. The first page, which you get via a GET request, should have a form with two text boxes, a dropdown box for the operation (+, -, *, /) and a button to calculate.

The form uses POST to go to a second screen which shows the results of your calculation.

Hard Mode

In addition to the requirements from Normal Mode:

  1. The form should also appear on the second page -- the calculation results page. The first operand should be filled in with the results of the previous calculation.

  2. Add Foundation or Bootstrap to your application to make it look nicer.

Additional Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published