Skip to content

hangbk84/Test_Task-LD_Flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Test_Task-LD_Flask

HOW TO USE THIS PROJECT

  • CONFIGURATION :

    Download Chromedriver and add to executable_path likes :

      driver = webdriver.Chrome(executable_path = r'D:/chromedriver/chromedriver.exe') 
    
  • TO USE :

    In project folder, tab :

      D:\Test_Task LD_Flask> cd app
      D:\Test_Task LD_Flask\app> set  "FLASK_APP = app:flask_app.py"
      D:\Test_Task LD_Flask\app> set "FLASK_ENV=development"
      D:\Test_Task LD_Flask\app> flask run
    

    In browser, tab : http://127.0.0.1:5000/distance// likes : http://127.0.0.1:5000/distance/paris/moscow

    The result can be seen in browser and example.log file, example : {"distance":"2,840 km"}

  • TO TEST :

    In case, from or to address is null, the distance is 0 from and to address is same, the distance is 0 in other, the distance likes {"distance":"2,840 km"}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages