An open API service indexing awesome lists of open source software.

https://github.com/betterstack-community/flask-world-clock


https://github.com/betterstack-community/flask-world-clock

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

# Flask World Clock

A world clock application built to demonstrate logging in Flask.

**Tutorial**: [How to Start Logging with Flask](#).

![Flask World Clock](screenshot.png)

## 🟢 Prerequisites

You must have the latest version of [Python 3](https://www.python.org) installed on your machine. This project is tested against Python 3.10.0.

## 📦 Getting started

- Clone this repo to your machine:

```bash
git clone https://github.com/betterstack-community/flask-world-clock.git
```

- `cd` into the project directory:

```bash
cd flask-world-clock
```

- Install Python virtual environment:

```bash
python3 -m venv env
```

- Activate the virtual environment.

On Windows, run:

```bash
env\Scripts\activate
```

On Unix or macOS, run:

```bash
source env/bin/activate
```

- Install the requirements:

```bash
python -m pip install -r requirements.txt
```

- Start the dev server:

```bash
flask run
```

You should see the following output if the dev server is started successfully:

```text
* Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on http://127.0.0.1:5000
Press CTRL+C to quit
```

Open your browser and go to [http://127.0.0.1:5000](http://127.0.0.1:5000)

## âš– License

The code used in this project and in the linked tutorial are licensed under the [Apache License, Version 2.0](LICENSE).