Skip to content

Add live refresh using Vite in Docker runtime environment#4

Open
mikhail-shevtsov-wiregate wants to merge 2 commits intoCNCKitchen:mainfrom
mikhail-shevtsov-wiregate:main
Open

Add live refresh using Vite in Docker runtime environment#4
mikhail-shevtsov-wiregate wants to merge 2 commits intoCNCKitchen:mainfrom
mikhail-shevtsov-wiregate:main

Conversation

@mikhail-shevtsov-wiregate
Copy link
Copy Markdown

@mikhail-shevtsov-wiregate mikhail-shevtsov-wiregate commented Apr 4, 2026

Closes #21

Goal

Add ability to run project locally without worrying about installation of node.js

New Dependencies

  • Docker

New Features

  • Project source is constantly watched by VITE dev server and browser page automatically refreshes if changes are found;
  • Production build compresses/minifies HTML, JS and CSS;
  • Production build automatically adds HASH sum to generated files - necessary for serving latest version to clients without worrying about cache;
  • Production build is hosted in Docker using nginx - MAX performance;

Affected flow

  • Current flow not affected;
  • Source codes moved to src/ directory;
  • Source codes are not modified;

Future recommendations

  • Add GitHub pipelines for automated build/deploy;
  • Add automatic image compression;

Demo

stlTexturizer-vite-docker.mp4

@mikhail-shevtsov-wiregate
Copy link
Copy Markdown
Author

@CNCKitchen I've rebased my PR according to latest commit to resolve conflicts. Please review. Let me know if you have any question/suggestion.

Configure Vite for building and serving the application.
Introduce Docker-based development and production environments.
Add multi-stage Dockerfile for building and serving the application.
Provide docker-compose configuration for container orchestration.
Include Nginx configuration template for production deployment.
Update README with instructions for Docker-based workflows.
Define project dependencies and scripts in package.json.
Update gitignore to exclude build artifacts and dependencies.
@mikhail-shevtsov-wiregate
Copy link
Copy Markdown
Author

@CNCKitchen I've rebased my PR according to latest commit to resolve any conflicts. Tested build - everything works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docker-compose for faster and easier local deployment

1 participant