13 módulos, 6 roles, 5 idiomas, 4 temas visuales Creador: José Jiménez Salinas — Consultoría Alcaraz Salazar
68 lines
1.3 KiB
Markdown
68 lines
1.3 KiB
Markdown
# Guía Rápida de Setup
|
|
|
|
## Opción 1: Vite (Recomendada)
|
|
|
|
```bash
|
|
git clone https://git.consultoria-as.com/consultoria-as/cranegoo.git
|
|
cd cranegoo
|
|
npm install
|
|
npm run dev
|
|
```
|
|
|
|
Luego agregar `vite.config.js`:
|
|
|
|
```javascript
|
|
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
})
|
|
```
|
|
|
|
Y crear `index.html` en la raíz:
|
|
|
|
```html
|
|
<!DOCTYPE html>
|
|
<html lang="es">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>CRANEGOO</title>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script type="module" src="/src/main.jsx"></script>
|
|
</body>
|
|
</html>
|
|
```
|
|
|
|
Y `src/main.jsx`:
|
|
|
|
```javascript
|
|
import React from 'react'
|
|
import ReactDOM from 'react-dom/client'
|
|
import App from './App.jsx'
|
|
|
|
ReactDOM.createRoot(document.getElementById('root')).render(
|
|
<React.StrictMode>
|
|
<App />
|
|
</React.StrictMode>,
|
|
)
|
|
```
|
|
|
|
## Opción 2: Directa en Claude.ai
|
|
|
|
El archivo `src/App.jsx` se puede abrir directamente como artifact en claude.ai para pruebas rápidas.
|
|
|
|
## Credenciales Admin
|
|
|
|
- **Usuario:** `jose.jimenez`
|
|
- **Contraseña:** `mexus2024`
|
|
|
|
## Notas
|
|
|
|
- La app corre 100% en frontend, sin backend
|
|
- Todo el estado se pierde al recargar
|
|
- Prioridad para el programador: migrar a Supabase/Firebase
|