A modern DevContainer template for React 19, powered by Vite, Tailwind CSS v4, and pnpm. Lightweight, opinionated, and developer-focused.
- React 19 (via Vite template)
- Tailwind CSS v4 (with plugin-based Vite integration)
- pnpm as the package manager
- DevContainer optimized for VS Code with live reload
- Pre-installed VS Code extensions:
- ESLint
- Prettier
- Docker
- TypeScript Next
- Makefile for common tasks (setup, dev, build, lint, format, clean)
- Docker + Dev Containers extension (VS Code)
- Git
git clone https://github.com/jonmatum/devcontainer-react-template.git
cd devcontainer-react-template
code . # Open in VS Code and re-open in container
make setup
make dev
Access your app at: http://localhost:5173
.devcontainer/
├── devcontainer.json
├── Dockerfile
Makefile
app/
├── index.html
├── package.json
├── src/
│ └── App.tsx (fetched from Gist)
│ └── index.css
├── vite.config.ts
Command | Description |
---|---|
make setup |
Scaffold app and apply Tailwind/React/Vite setup |
make dev |
Start the Vite dev server |
make build |
Create production build |
make lint |
Run linter (optional, if configured) |
make format |
Format files with Prettier |
make clean |
Clean output/dist |
Uses the official devcontainers/javascript-node image with additional:
- Corepack-enabled
pnpm
- System dependencies: curl, git, bash
- Pre-configured ports, terminal, and user
- Includes extensions for best TypeScript and React DX
This project is licensed under the MIT License.
Happy Coding & Pura Vida!