https://github.com/prish20/alx-backend
https://github.com/prish20/alx-backend
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/prish20/alx-backend
- Owner: Prish20
- Created: 2024-09-01T04:16:58.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-10-09T19:08:18.000Z (8 months ago)
- Last Synced: 2025-01-26T05:16:01.317Z (4 months ago)
- Language: Python
- Size: 150 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 0x02. i18n
## Description
This project is a basic Flask application that serves a simple webpage with a "Welcome to Holberton" title and a "Hello world" header.
## Files
- **0-app.py:** This file contains the Flask application setup. It defines a single route (`/`) that renders the `0-index.html` template.
- **templates/0-index.html:** This HTML template defines the structure and content of the webpage, including the title and header.## Usage
1. **Install Flask:**
```bash
pip install Flask
```
2. **Run the application:**
```bash
FLASK_APP=0-app.py flask run
```
3. **Access the application:** Open a web browser and navigate to `http://127.0.0.1:5000/`.## Output
The application will display a webpage with the following:
- **Title:** Welcome to Holberton
- **Header:** Hello world