Skip to content

ViteJS - ReactJS - TypeScript with PNPM for Docker.

License

Notifications You must be signed in to change notification settings

renhyl/vite-reactjs-ts

Repository files navigation

Screenshot 2023-02-16 at 17 35 36Screenshot 2023-02-16 at 17 35 51Screenshot 2023-02-16 at 17 37 29Screenshot 2023-02-16 at 17 38 10Screenshot 2023-02-16 at 17 38 52Screenshot 2023-02-16 at 18 08 42

Screenshot 2023-02-16 at 17 27 28

🟡 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.

ESLint statically analyzes your code to quickly find problems. It is built into most text editors and you can run ESLint as part of your continuous integration pipeline.

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

image

🟡 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

About

ViteJS - ReactJS - TypeScript with PNPM for Docker.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published