[FEAT] Full function and deployed version
This commit is contained in:
22
AGENTS.md
22
AGENTS.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user