Decouple client from server
Add Vite dependency and remove server side rendering to make it
possible to run the client independently.
Remove webpack config, replace with the `Vite` build tool.
GitLab: #55
Change-Id: I3a05d2e86cf6cb0ab91e77b3696f393132137575
diff --git a/docker-compose.yml b/docker-compose.yml
index 40fcd77..7aef7d9 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -6,15 +6,10 @@
build: .
volumes:
# Add bind mounts for hot-reload
- - ./client:/web-client/client
- - ./routes:/web-client/routes
- - ./model:/web-client/model
- # Ignore folders from the bind mounts
- - /web-client/client/node_modules/
- - /web-client/node_modules/
- - /web-client/dist/
- - /web-client/client/dist
+ - ./client/src:/web-client/client/src
+ - ./server/src:/web-client/server/src
ports:
+ - "3001:3001"
- "3000:3000"
- "5000:5000"
stdin_open: true