This repository contains a simple Flask application with a frontend and backend. The app demonstrates basic deployment functionality and showcases interaction between a frontend and a REST API. Clicking a button on the frontend triggers a REST API call to fetch and display a "Hello, World!" message.
- Frontend: A simple HTML page with a button that fetches a message from the backend.
- Backend: A Flask server with an API endpoint (
/api/message) that returns the "Hello, World!" message.
Clone the repository to your local machine:
git clone https://github.com/Arvo-AI/hello_world.git-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
venv\Scripts\activate
-
Create a virtual environment:
python3 -m venv venv
-
Activate the virtual environment:
source venv/bin/activate
Install the required Python packages:
pip install -r app/requirements.txtNavigate to the app directory and run the app:
cd app
python app.py- Open your browser and navigate to:
http://127.0.0.1:5000 - Click the button on the page to see the "Hello, World!" message fetched from the backend.