diff --git a/.gitignore b/.gitignore index c2658d7..04c01ba 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules/ +dist/ \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..bf1907b --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +Frontend build (Vite) + +- Development: run `npm run frontend:dev` in the project root, which starts Vite. Open the dev server URL printed by Vite (usually http://localhost:5173) and the backend at `http://localhost:8282`. +- Build: run `npm run frontend:build` which outputs files to `dist/`. The Express server will serve `dist/index.html` at `/admin` once `dist/` exists. + +Notes: +- Install dev dependencies with `npm install` before running the scripts. +- The Vite build includes `@vitejs/plugin-legacy` for broader browser support. diff --git a/client/index.html b/client/index.html new file mode 100644 index 0000000..4f9e37c --- /dev/null +++ b/client/index.html @@ -0,0 +1,20 @@ + + +
+ + +Panel de administración de sesiones
+Gestor de Sesión de YouTube
-Run npm run build to build the admin frontend, or run npm run dev during development and open the Vite dev server.