Skip to content

ZaytsevNS/flask_random_num

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FLASK web application

This web app works with random numbers and you can:

  1. generate some random numbers from N to M;
  2. choose the number of such numbers;
  3. find the product of the numbers taken by absolute value;
  4. find the maximum and minimum number among the numbers taken by absolute value;
  5. perform sorting of numbers taken by absolute value.

How to run this app?

  1. Create a project directory.
  2. Change into the project directory.
  3. Create virtual environment:
pip install virtualenv
virtualenv venv --python=<YOUR_PYTHON_VERSION>

For example:

virtualenv venv --python=3.7.6
  1. Activate virtual environment:
venv/Scripts/activate
  1. Install python packages into a virtual environment:
pip install -r requirements.txt
  1. Run app.py and go to your web browser and type in the search field: http://localhost:8000/
  2. Enter your name, select the required numerical values and options and click to button 'Показать результаты'. If you want to clear the form click to button 'Очистить форму'.
  3. When you’re done working on a project deactivate virtual environment:
venv/Scripts/deactivate

Run this web app on heroku

Home page with filled fields: StartPage

Page when you click to button 'Показать результаты' StartPage

About

Flask web app for work with random number

Topics

Resources

License

Stars

Watchers

Forks