diff --git a/README.md b/README.md index c67de45..9f8742e 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ No frontend framework, no build step — everything runs directly in the browser ## Project Structure ``` -guessTheLiar/ +black-sheep-bluff/ ├── index.html # Entire frontend (lobby, player view, host view) ├── api.php # REST API for all game actions ├── auth.php # Login, session management, PIN handling @@ -131,35 +131,29 @@ All actions go through `api.php?action=` (GET or POST with a JSON body). **Requirements:** PHP 8.1+, MySQL 8+, web server (Apache or Nginx) -**1. Clone the repo** ```bash -git clone https://github.com/daniediekert-blip/black-sheep-bluff.git -cd black-sheep-bluff +git clone https://github.com//guessTheLiar.git +cd guessTheLiar ``` -**2. Create the database** +Create `config.php`: +```php + 'localhost', + 'dbname' => 'your_database', + 'user' => 'your_db_user', + 'pass' => 'your_db_password', + 'charset' => 'utf8mb4', +]; +``` + +Create the database: ```sql CREATE DATABASE your_database CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; ``` -**3. Create `config.php`** (copy from the template) -```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. +All tables are created automatically by the migration system on the first page load. ---