[FIX] The Prototype is now functional

This commit is contained in:
NADAL Jean-Baptiste
2026-02-18 15:43:41 +01:00
parent 039cecc4a6
commit e7c4768589
2 changed files with 9 additions and 1 deletions

View File

@@ -171,6 +171,14 @@ MySQL database connection configured in `api/config/database.php`:
- **Test**: http://localhost:5173 - login with admin/password - **Test**: http://localhost:5173 - login with admin/password
- **API base URL**: http://localhost:8000/api/ - **API base URL**: http://localhost:8000/api/
### Starting the PHP Server
For file uploads to work, start the server with the custom upload config:
```bash
cd api
php -c php-upload.ini -S localhost:8000 router.php
```
## Current Tech Stack (2024) ## Current Tech Stack (2024)
- **Frontend**: SvelteKit (NOT Vue.js 2) in `/partitions/` - **Frontend**: SvelteKit (NOT Vue.js 2) in `/partitions/`

View File

@@ -22,7 +22,7 @@ const config = {
'script-src': ['self', 'unsafe-inline'], 'script-src': ['self', 'unsafe-inline'],
'style-src': ['self', 'unsafe-inline'], 'style-src': ['self', 'unsafe-inline'],
'img-src': ['self', 'data:', 'blob:'], 'img-src': ['self', 'data:', 'blob:'],
'connect-src': ['self', 'http://localhost:8000', 'https://*.ohmj.fr'], 'connect-src': ['self', 'http://localhost:8000', 'https://*.ohmj.fr', 'blob:'],
'font-src': ['self'], 'font-src': ['self'],
'object-src': ['none'], 'object-src': ['none'],
'frame-ancestors': ['none'], 'frame-ancestors': ['none'],