Merge remote-tracking branch 'origin/main'
# Conflicts: # README.md
This commit is contained in:
commit
f805552ff1
1 changed files with 17 additions and 23 deletions
40
README.md
40
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=<name>` (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/<your-username>/guessTheLiar.git
|
||||
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
|
||||
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.
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue