The "Random Actor Generator Web App" is a simple yet engaging web application built with Flask, HTML, CSS, and JavaScript. It dynamically generates and displays a random actor's name along with a randomly chosen text color. Users can click a button to fetch a new actor's name and observe real-time changes to both the actor's name and text color, all without the need for a full page refresh.
- Flask: A lightweight web framework for Python.
- HTML: The standard markup language for creating web pages.
- CSS: Used for styling the web page and centering content.
- JavaScript: Handles AJAX requests and dynamic updates.
To get a local copy of this project up and running, follow these simple steps.
You need to have Python and pip (Python package manager) installed on your system.
- Clone the repo
git clone https://github.com/tabebill/random-actor.git
cd random-actorpip install -r requirements.txtpython app.pyThe web app should now be accessible at http://localhost:5001 in your web browser.
Open your web browser and go to http://localhost:5001.
You'll see a randomly generated actor's name with a unique text color.
Click the "Change Actor" button to fetch a new actor's name and observe the dynamic changes in both the actor's name and text color.
Continue clicking the button to experience the real-time generation of random actors and colors.
Contributions are what make the open-source community such a fantastic place to learn, inspire, and create. Any contributions you make are greatly appreciated.
Fork the Project Create your Feature Branch (git checkout -b feature/AmazingFeature) Commit your Changes (git commit -m 'Add some AmazingFeature') Push to the Branch (git push origin feature/AmazingFeature) Open a Pull Request
Distributed under the GNU License. See LICENSE for more information.
This project was created to demonstrate the integration of Flask with frontend technologies. Special thanks to the Flask, HTML, CSS, and JavaScript communities for their valuable resources and documentation.
