/vite-reactjs-ts

ViteJS - ReactJS - TypeScript with PNPM for Docker.

Primary LanguageTypeScriptMIT LicenseMIT

🟡 Mission Statment 🟡

🥰 Docker'ized dev project, that just works, has 0 configuration, offers hot reloading, uses best standards and pratices*

Vite.js is a rapid development tool for modern web projects. It focuses on speed and performance by improving the development experience. Vite uses native browser ES imports to enable support for modern browsers without a build process.

A JavaScript library for building user interfaces

TypeScript is JavaScript with syntax for types.

"Fast, disk space efficient package manager".

The Dev Containers extension lets you use a Docker container as a full-featured development environment.

🟡 Key Notes 🟡

NOTE: you don't have to touch /node_modules on the host, Docker container will handle install and update and respect any overrides. If you don't use VSCode's "Dev Container" to develop then all you need to do after updating modules/package.json is rebuild image && restart with docker-compose up --build

🟡 Get Started 🟡

VSCode users:

git clone git@github.com:renhyl/vite-reactjs-ts.git

open dir in VSCode and "Dev Containers: Reopen in Container" from Command Palette

You can develop by opening your VSCode and launching/connecting to Dev Container. (Requires VSCode extension "Dev Containers", "Remote Development")

For non-VSCode users:

You can run the container from your project's root dir with:

docker run -it --rm -v ${PWD}:/app -v /app/node_modules -p 5173:5173 damianboni/vite:react-ts

alternatively you can:

docker-compose up --build

ensure you always use --build to sync/update /node_modules


You should be able to browse the homepage of the project by navigating to: http://localhost:5173/

License: MIT