[FEAT] Full function and deployed version

This commit is contained in:
NADAL Jean-Baptiste
2026-02-19 15:15:58 +01:00
parent e7c4768589
commit cf0db69f2d
24 changed files with 6949 additions and 69 deletions

View File

@@ -23,6 +23,20 @@ npm run lint # ESLint check
### PHP
No build step required. Deploy to PHP-enabled web server.
## Deployment
### Create Deploy ZIP
```bash
cd /home/jbnadal/sources/jb/ohmj/ohmj2
./deploy/deploy.sh
```
**Important:**
- Do NOT include `legacy/` folder in the zip
- Do NOT include `tests.php` in the zip
- The `.env` file is included with JWT_SECRET
- Frontend build must be in `frontend/` directory
## Testing
### PHP API Tests
@@ -40,6 +54,8 @@ The tests cover:
- **Create Score with Pieces**: Functional tests with pieces verification
- **Files**: Get files tree, delete file error handling
**Note**: tests.php is kept in source for development but must NOT be included in deploy zip.
### Vue/Svelte
No test framework configured for frontend.
@@ -135,11 +151,7 @@ MySQL database connection configured in `api/config/database.php`:
## Important Notes
- **No external CDN dependencies allowed** - All assets must be local (fonts, JS libraries, etc.)
- Use local copies in `static/` folder instead of CDN
## Notes
- **NEVER delete files or directories** - Always ask before removing anything
- This is a legacy codebase with mixed coding styles
- Prefer consistency with existing code over strict style enforcement
- Site targets French-speaking users