This is a simple, configurable web application for creating and displaying presentations on different topics. Each presentation is accessed via a unique "slug" in the URL.
- PHP 8.3 or higher
- MariaDB (or MySQL)
- A web server (like Apache or Nginx), or you can use PHP's built-in server for development.
-
Clone the repository:
git clone <repository-url>
-
Install PHP extensions:
sudo apt-get update sudo apt-get install -y php php-mysql
-
Install and configure MariaDB:
sudo apt-get install -y mariadb-server sudo service mariadb start
-
Set up the database:
- Log in to MariaDB as the root user:
sudo mysql
- Run the following SQL commands to create the database, user, and table:
CREATE DATABASE slide; CREATE USER 'slide'@'localhost' IDENTIFIED BY 'xxxxxx'; -- Replace 'xxxxxx' with a strong password GRANT ALL PRIVILEGES ON slide.* TO 'slide'@'localhost'; FLUSH PRIVILEGES; USE slide; CREATE TABLE presentations ( slug VARCHAR(255) PRIMARY KEY, content TEXT ); EXIT;
- Log in to MariaDB as the root user:
-
Update the database configuration:
- Open
api/config.phpand update thepassvalue with the password you set in the previous step.
- Open
For development, you can use PHP's built-in web server:
php -S 127.0.0.1:8080Then, open your browser and navigate to http://127.0.0.1:8080.
To create a new presentation page (e.g., for "italia"):
-
Change the URL:
- Go to
http://127.0.0.1:8080/index.php?slug=italia.
- Go to
-
Open the Editor:
- Click the "⚙️ Impostazioni Totali" button in the footer.
-
Edit the Content:
- The editor will load with the default content. Modify the text, images, and data to match your new topic.
-
Save:
- Click the "💾 SALVA SUL SERVER" button.
The new page is now saved and will be loaded anytime you visit that URL.