Flask Website on Raspberry Pi for Local Network Access
This project make me learn a lot about building web server and connect it to data base . the project enables users to host a Flask website on a Raspberry Pi, allowing access from any device connected to the same local network.this project offers a seamless solution for hosting web applications within a local environment. The server's primary functionality revolves around fetching memes from Reddit and storing them in a database.
my raspberri pi terminal:
my main computer:
**make sure the html file is inside folder named templates
GoogleCloud SQL(my instance):
Service account (cloud-sql-proxy dialog-appointment-bot):
MySQL DataBase preview:
Features:
Utilizes Flask, a micro web framework for Python, to create web pages. using the Raspberry Pi as a server, providing a solution for hosting the website within a local network. i can access the website from any device connected to the same local network, including smartphones, tablets, laptops, and desktop computers. The website fetches random memes from Reddit and displays them to the users.
Usage:
1)Setup Raspberry Pi: Install necessary dependencies and configure the Raspberry Pi for hosting the Flask website.
2)Clone Repository: Clone this repository onto the Raspberry Pi.
3)Configure Flask App: Customize the Flask application according to your requirements.
4)Run Flask App: Start the Flask application on the Raspberry Pi.
5)Access Website: Open a web browser on any device connected to the same local network and navigate to the Raspberry Pi's IP address to access the website.
Getting Started:
To get started with this project, do that:
1)Install Flask on your Raspberry Pi.
2)Clone this repository onto your Raspberry Pi.
3)Customize the Flask application according to your needs by modifying the code.
4)Run the Flask application using the provided instructions.
5)Access the website from any device connected to your local network and enjoy browsing through random memes from Reddit.




