Skip to content

DevContainer-based template for React.js projects, optimized for VS Code, Docker, and rapid frontend development.

License

Notifications You must be signed in to change notification settings

jonmatum/devcontainer-react-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

React DevContainer Template

License: MIT DevContainer Ready Vite TailwindCSS Makefile

A modern DevContainer template for React 19, powered by Vite, Tailwind CSS v4, and pnpm. Lightweight, opinionated, and developer-focused.

Features

  • 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)

Getting Started

Prerequisites

  • Docker + Dev Containers extension (VS Code)
  • Git

Quick Start

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

Project Structure

.devcontainer/
├── devcontainer.json
├── Dockerfile
Makefile
app/
├── index.html
├── package.json
├── src/
│   └── App.tsx (fetched from Gist)
│   └── index.css
├── vite.config.ts

Makefile Commands

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

Configuration Highlights

Dockerfile

Uses the official devcontainers/javascript-node image with additional:

  • Corepack-enabled pnpm
  • System dependencies: curl, git, bash

devcontainer.json

  • Pre-configured ports, terminal, and user
  • Includes extensions for best TypeScript and React DX

License

This project is licensed under the MIT License.


Happy Coding & Pura Vida!

About

DevContainer-based template for React.js projects, optimized for VS Code, Docker, and rapid frontend development.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published