live refresh

This commit is contained in:
2025-11-12 19:38:40 +03:00
parent e4b39b1c39
commit 7d2d9a54e9
3 changed files with 9 additions and 2 deletions

View File

@@ -8,6 +8,9 @@ services:
- CHOKIDAR_USEPOLLING=1 - CHOKIDAR_USEPOLLING=1
ports: ports:
- "5173:5173" - "5173:5173"
volumes:
- .:/app
- /app/node_modules
depends_on: depends_on:
- backend-dev - backend-dev
profiles: profiles:
@@ -22,6 +25,9 @@ services:
- CLIENT_ORIGIN=http://localhost:5173 - CLIENT_ORIGIN=http://localhost:5173
ports: ports:
- "4000:4000" - "4000:4000"
volumes:
- ./server:/app
- /app/node_modules
profiles: profiles:
- imgpub-app-dev - imgpub-app-dev

View File

@@ -5,12 +5,13 @@
"description": "EPUB generation server for imgPub", "description": "EPUB generation server for imgPub",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"dev": "node index.js" "dev": "nodemon index.js"
}, },
"dependencies": { "dependencies": {
"cors": "^2.8.5", "cors": "^2.8.5",
"epub-gen": "^0.1.0", "epub-gen": "^0.1.0",
"express": "^4.19.2", "express": "^4.19.2",
"nodemon": "^3.1.4",
"uuid": "^9.0.1" "uuid": "^9.0.1"
} }
} }

View File

@@ -65,7 +65,7 @@ const App = () => {
letterSpacing: 1, letterSpacing: 1,
}} }}
> >
imgpub imagepub
</Typography> </Typography>
<Stack direction="row" spacing={3} alignItems="center"> <Stack direction="row" spacing={3} alignItems="center">
<Typography <Typography