A simple web application for keeping a digital diary.
- Make sure PHP and MySQL are installed on your system (e.g. via XAMPP).
- Run
php php/setup_db.phpto create the database and table. - Open
public/index.htmlin your browser (via a local server, e.g. Apache).
- Make sure Docker and Docker Compose are installed
- Run
docker-compose up --build - Open http://localhost:8080 in your browser
- The database will be created automatically and is persistent
To deploy this application on your web server:
- Web server with PHP support (Apache, Nginx, etc.)
- MySQL database server
- PHP 7.4 or higher
- Upload files: Upload all files to your web server's document root or a subdirectory
- Database setup:
- Create a MySQL database for your diary application
- Update the database configuration in
php/db_config.phpwith your server details:$host = 'your-db-host'; $dbname = 'your-database-name'; $username = 'your-db-username'; $password = 'your-db-password';
- Initialize database: Run the setup script by accessing
your-domain.com/php/setup_db.phpin your browser - Set permissions: Ensure the web server has read/write permissions for the application files
- Security:
- Remove or restrict access to
php/setup_db.phpafter initial setup - Consider setting up HTTPS for secure data transmission
- Configure your web server to deny direct access to PHP files in the
php/directory
- Remove or restrict access to
- Rich text editor for entries
- Calendar for navigating to different days
- Data stored in MySQL database
- User authentication and registration
- Responsive design with multiple themes
- HTML
- Tailwind CSS
- JavaScript (Quill.js for editor)
- PHP
- MySQL
- Docker (optional)