diff --git a/api_v1/scanphoto.js b/api_v1/scanphoto.js index d3c7c9f..8712639 100644 --- a/api_v1/scanphoto.js +++ b/api_v1/scanphoto.js @@ -256,7 +256,7 @@ async function scanDir(dirAbs, results = []) { const ext = path.extname(dirent.name).toLowerCase(); if (!SUPPORTED_EXTS.has(ext)) continue; - + console.log("Elaboro:", absPath); const isVideo = ['.mp4', '.mov', '.m4v'].includes(ext); const relFile = toPosix(path.relative(WEB_ROOT, absPath)); @@ -368,7 +368,7 @@ async function scanPhoto(dir) { await fsp.mkdir(path.dirname(absIndexPath), { recursive: true }); await fsp.writeFile(absIndexPath, JSON.stringify(photos, null, 2), 'utf8'); } - + await new Promise(r => setTimeout(r, 500)); return photos; } catch (e) { diff --git a/public/index.html b/public/index.html index 6116b1e..191ab18 100644 --- a/public/index.html +++ b/public/index.html @@ -18,6 +18,7 @@ +

 
@@ -25,6 +26,7 @@
 
-
-
-
-
diff --git a/readme.md b/readme.md
index 1bf67a3..9b875b4 100644
--- a/readme.md
+++ b/readme.md
@@ -4,15 +4,15 @@ This project allows us to use an API Rest to develop in the frontend with mock d
 
 ## Install
 
-Clone this repo on your machine and before run `npm i` to install all dependences.
+Clone this repo on your machine and before run `npm ci` to install all dependences.
 
 
 ## Start/Stop servers
 
 | Description               | Script               |
 | ------------------------- | -------------------- |
-| Start server without auth | `npm start`          |
-| Start server with auth    | `npm run start-auth` |
+| Start server without auth | `npm start-no-auth`  |
+| Start server with auth    | `npm run start`      |
 
 ## Tools
 
@@ -27,6 +27,10 @@ Clone this repo on your machine and before run `npm i` to install all dependence
 | `localhost:4000/auth/login`             | Login user |
 | `localhost:4000/photos`             | Products list (token needed) |
 
+## Open admin website
+```
+http://ip:4000
+```
 ## Change port
 
 in package.json mod -p 4000