Merge remote-tracking branch 'origin/main'

# Conflicts:
#	README.md
This commit is contained in:
danny 2026-06-14 14:44:57 +02:00
commit f805552ff1

View file

@ -65,7 +65,7 @@ No frontend framework, no build step — everything runs directly in the browser
## Project Structure ## Project Structure
``` ```
guessTheLiar/ black-sheep-bluff/
├── index.html # Entire frontend (lobby, player view, host view) ├── index.html # Entire frontend (lobby, player view, host view)
├── api.php # REST API for all game actions ├── api.php # REST API for all game actions
├── auth.php # Login, session management, PIN handling ├── auth.php # Login, session management, PIN handling
@ -131,35 +131,29 @@ All actions go through `api.php?action=<name>` (GET or POST with a JSON body).
**Requirements:** PHP 8.1+, MySQL 8+, web server (Apache or Nginx) **Requirements:** PHP 8.1+, MySQL 8+, web server (Apache or Nginx)
**1. Clone the repo**
```bash ```bash
git clone https://github.com/daniediekert-blip/black-sheep-bluff.git git clone https://github.com/<your-username>/guessTheLiar.git
cd black-sheep-bluff cd guessTheLiar
``` ```
**2. Create the database** Create `config.php`:
```php
<?php
return [
'host' => 'localhost',
'dbname' => 'your_database',
'user' => 'your_db_user',
'pass' => 'your_db_password',
'charset' => 'utf8mb4',
];
```
Create the database:
```sql ```sql
CREATE DATABASE your_database CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; CREATE DATABASE your_database CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
``` ```
**3. Create `config.php`** (copy from the template) All tables are created automatically by the migration system on the first page load.
```bash
cp config.example.php config.php
```
Then fill in your credentials — `config.php` is in `.gitignore` and will never be committed.
**4. Run the setup wizard**
Open `https://yourdomain.com/setup.php` in your browser. Enter a username and password for the admin account and submit the form.
The setup wizard will:
- Run all database migrations automatically (creates every table)
- Create the admin account
- **Delete itself** — `setup.php` is removed from the server automatically on success
If auto-delete fails due to file system permissions, remove `setup.php` manually.
**5. Done** — open `index.html` and start playing.
--- ---