Skip to content

Sidm9/timezoneAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Timezone API

Simple TimeZone Api

To get it running

Create an environment Create a project folder and a venv folder within:

$ mkdir myproject $ cd myproject $ python3 -m venv venv

On Windows (Python 3):

py -3 -m venv venv

If you needed to install virtualenv because you are using Python 2, use the following command instead:

python2 -m virtualenv venv

On Windows (Python 2):

\Python27\Scripts\virtualenv.exe venv

Activate the environment Before you work on your project, activate the corresponding environment:

$ . venv/bin/activate

On Windows:

venv\Scripts\activate

Your shell prompt will change to show the name of the activated environment.

Install Flask

Within the activated environment, use the following command to install Flask:

$ pip install Flask

Routes

Enter This url on browser or make A GET request on postman or curl

http://127.0.0.1:5000/ { Country Name } / {Enter City Name}

Example