Skip to content

Template to start a new React project that uses Vite with TypeScript. Simply run `docker compose up` to get started!

Notifications You must be signed in to change notification settings

angelajfisher/Dockerized-React-App-with-Vite-and-TS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dockerized React + TypeScript + Vite Template

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules -- now Dockerized!

Simply run docker compose up in the project directory to get started.

Currently, two official plugins are available:

Working with Docker

Begin the development server with the command:

docker compose up

If you need to add more dependencies to the project, connect to the Docker container (named webapp) and execute your npm install commands within it.

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

  • Configure the top-level parserOptions property like this:
   parserOptions: {
    ecmaVersion: 'latest',
    sourceType: 'module',
    project: ['./tsconfig.json', './tsconfig.node.json'],
    tsconfigRootDir: __dirname,
   },
  • Replace plugin:@typescript-eslint/recommended to plugin:@typescript-eslint/recommended-type-checked or plugin:@typescript-eslint/strict-type-checked
  • Optionally add plugin:@typescript-eslint/stylistic-type-checked
  • Install eslint-plugin-react and add plugin:react/recommended & plugin:react/jsx-runtime to the extends list

About

Template to start a new React project that uses Vite with TypeScript. Simply run `docker compose up` to get started!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published