Modularización de GKACHELE SaaS
This commit is contained in:
69
demo/INICIO_WINDOWS.md
Normal file
69
demo/INICIO_WINDOWS.md
Normal file
@@ -0,0 +1,69 @@
|
||||
# 🚀 Iniciar Demo en Windows
|
||||
|
||||
## Opción 1: Usar Python desde WSL
|
||||
|
||||
Si tienes Python en WSL (que es donde tienes tu proyecto):
|
||||
|
||||
```bash
|
||||
# En WSL
|
||||
cd ~/mi-landing/pagebuilder-saas-prod
|
||||
# O copia la carpeta demo a WSL
|
||||
cd /mnt/c/word/demo
|
||||
python3 app.py
|
||||
```
|
||||
|
||||
## Opción 2: Usar Python de Windows
|
||||
|
||||
1. **Verificar Python instalado:**
|
||||
```powershell
|
||||
py --version
|
||||
# o
|
||||
python --version
|
||||
```
|
||||
|
||||
2. **Instalar dependencias:**
|
||||
```powershell
|
||||
cd demo
|
||||
py -m pip install Flask Werkzeug
|
||||
```
|
||||
|
||||
3. **Ejecutar:**
|
||||
```powershell
|
||||
py app.py
|
||||
```
|
||||
|
||||
## Opción 3: Usar el script start.bat
|
||||
|
||||
Doble click en `start.bat` (instala dependencias y ejecuta)
|
||||
|
||||
## 🔧 Si no funciona
|
||||
|
||||
### Verificar puerto
|
||||
```powershell
|
||||
netstat -ano | findstr :5001
|
||||
```
|
||||
|
||||
### Cambiar puerto
|
||||
Edita `app.py` línea 400, cambia:
|
||||
```python
|
||||
port = int(os.environ.get('PORT', 5001))
|
||||
```
|
||||
Por:
|
||||
```python
|
||||
port = int(os.environ.get('PORT', 8000))
|
||||
```
|
||||
|
||||
### Ver errores
|
||||
Ejecuta directamente:
|
||||
```powershell
|
||||
cd demo
|
||||
py app.py
|
||||
```
|
||||
|
||||
Y verás los errores en la consola.
|
||||
|
||||
## 📍 URLs
|
||||
|
||||
- Landing: http://localhost:5001
|
||||
- Admin: http://localhost:5001/admin
|
||||
- Dashboard: http://localhost:5001/dashboard (requiere login)
|
||||
Reference in New Issue
Block a user