https://github.com/betterstack-community/flask-world-clock
https://github.com/betterstack-community/flask-world-clock
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/betterstack-community/flask-world-clock
- Owner: betterstack-community
- License: apache-2.0
- Created: 2022-09-17T21:11:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-23T15:50:57.000Z (over 2 years ago)
- Last Synced: 2025-01-13T21:44:44.878Z (over 1 year ago)
- Language: HTML
- Size: 460 KB
- Stars: 0
- Watchers: 1
- Forks: 18
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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](#).

## 🟢 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).