This project is a React application built with Vite. It can be run either inside a Docker container for a consistent environment or natively on your machine using Node.js.
- Build the Docker image:
docker build -t react-vite-app .- Run the container:
docker run -it -p 5173:5173 react-vite-app- Open the app in your browser:
The app runs in a consistent, isolated environment with all dependencies included.
- Install dependencies:
npm install- Start the development server:
npm run dev- Open the app in your browser:
This method requires Node.js installed locally and uses your local environment.
- Docker ensures the same environment for all developers and simplifies deployment.
- Local setup is faster for iterative development but depends on your local Node.js version.
- For production, you can build a static version using
npm run buildand serve it with any static server or container.