one counter to rule them all
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_site
app
.gitignore
Procfile
README.md
requirements.txt
run.py

README.md

###Head to the profile pages Bill Bunkum Profile

Kelly Wright Profile

#Multi-function tool a flask app

Swiss-army-app does?

  1. Links to developers' profile sites
  2. Simple calculator tool
  3. Word counter tool
  4. Github user's repo search
  5. API request tool for generating random users

Basic Setup for development

*On local machine

  • mkvirtualenv -p python3 swiss-army-app
  • pip install -r requirements.txt

*Run the flask app

  • python run.py

#How to...set Flask up

###1. set up git repo/file structure $ mkdir $ pushd $ git init

  • create a new repo in GitHub; clone the url or ssh link $ git remote add origin <cloned url> // make first add/commit/push $ git add . $ git commit -m "initial commit" $ git push origin master

###2. set up virtual environment

  • mkvirtualenv -p python3 swiss-army-app

###3. requirements.txt

###4. w/in run.py from app import app app.run(debug=True)

###5. running/debugging a Flask project

  1. $ python run.py

####unused calculator-form.html

                {% if subfield == "+ Add" %}
                    <i class="fa fa-plus"></i>
                {% endif %}

                {% if subfield == "- Subtract" %}
                    <i class="fa fa-minus"></i>
                {% endif %}

                {% if subfield == "* Multiply" %}
                    <i class="fa fa-times"></i>
                {% endif %}

                {% if subfield.value == "/ Divide" %}
                    <i class="fa fa-low-vision"></i>
                {% endif %}