RESTberry-Pi is a Flask-based API server designed to run on a Raspberry Pi. It leverages a MySQL database and is fully containerized using Docker.
- RESTful API endpoints for.
- MySQL database integration.
- Dockerized setup for easy deployment.
- Docker & Docker Compose installed.
- Raspberry Pi with Raspbian OS.
- Python 3.7+.
-
Clone the Repository:
git clone https://github.com/Ezzaldeen97/RESTberry-Pi.git cd RESTberry-Pi -
Environment Variables: Create a
.envto set your environment variables:MYSQL_DATABASE=QAIA_DB MYSQL_USER=<user> MYSQL_PASSWORD=<> MYSQL_ROOT_PASSWORD=<> -
Create config.jso file Your config.jso file should look something like this:
{ "db_host": "mysql_db", "db_port":"3306", "db_name":"QAIA_DB", "db_password" : "", "db_user": "" } -
Build and Run the Docker Containers:
docker-compose up --build
-
Access the API: The API will be accessible at
http://localhost:5000.
Contributions are welcome! Please fork this repository
