Primo rilascio
This commit is contained in:
60
README.md
Normal file
60
README.md
Normal file
@@ -0,0 +1,60 @@
|
||||
# NurseryApp - Guida all'avvio
|
||||
|
||||
Questo documento ti insegna come avviare sia il **backend** PHP che il **frontend** Angular.
|
||||
|
||||
---
|
||||
|
||||
## 🚀 **Avviamento del Frontend (Angular)**
|
||||
|
||||
1. **Vai nella cartella del frontend:**
|
||||
```bash
|
||||
cd frontend/nursery-app
|
||||
```
|
||||
|
||||
2. **Installa le dipendenze (se non ancora fatto):**
|
||||
```bash
|
||||
npm install
|
||||
# oppure
|
||||
yarn install
|
||||
```
|
||||
|
||||
3. **Avvia lo sviluppo locale:**
|
||||
```bash
|
||||
ng serve --host 0.0.0.0
|
||||
```
|
||||
|
||||
🌐 **Apri il browser su:** `http://localhost:4200`
|
||||
|
||||
---
|
||||
|
||||
## ⚙️ **Avviamento del Backend (PHP)**
|
||||
|
||||
1. **Assicurati di avere PHP e Composer installati.**
|
||||
|
||||
2. **Vai nella cartella del backend:**
|
||||
```bash
|
||||
cd backend
|
||||
```
|
||||
|
||||
3. **Installa le dipendenze PHP:**
|
||||
```bash
|
||||
composer install
|
||||
```
|
||||
|
||||
4. **Configura il file `.env`:**
|
||||
- Se esiste un `.env.example`, copialo:
|
||||
```bash
|
||||
cp .env.example .env
|
||||
```
|
||||
- Modifica le variabili d'ambiente necessarie (es. DB connection string).
|
||||
|
||||
5. **Avvia lo sviluppo del backend:**
|
||||
|
||||
### Opzione A: Laravel (se è un progetto Laravel)
|
||||
```bash
|
||||
php artisan serve --host=0.0.0.0 --port=8000
|
||||
```
|
||||
|
||||
### Opzione B: PHP semplice
|
||||
```bash
|
||||
php -S localhost:8000
|
||||
Reference in New Issue
Block a user