🚀 A minimal setup to get React working in Vite with HMR (Hot Module Replacement) and a few ESLint rules for better code quality.
- ⚡ Vite: Blazing-fast development environment.
- 🔥 Hot Module Replacement (HMR): Instantly updates your app during development.
- 🛠️ ESLint Rules: Maintain clean and consistent code.
- 🌐 Docker Support: Easy deployment in a containerized environment.
git clone https://github.com/devAndWit/pokedex-diary-react.git
npm install
npm run dev
docker build -t react-vite-app .
docker run -d -p 3000:80 --name react-vite-container react-vite-app
The app will be accessible at http://localhost:3120
.
Alternatively, you can use Docker Compose for easier management. Here's how:
- Create a
docker-compose.yml
services:
react-app:
build:
context: .
dockerfile: Dockerfile
container_name: pokedex-diary-container
ports:
- "3120:80"
restart: always
- Start the Container:
docker compose up -d
- Stop the Container:
docker compose down
Enjoy coding! 🚀