How domenicocolandrea86/react-vite-typescript-boilerplate works
Project type and purpose
• This is a single-page application (SPA) boilerplate focused on front-end development:
– React + TypeScript for UI
– Vite for development server and build
– Tailwind for styling
– Vitest + Testing Library for unit/E2E tests
– ESLint/Prettier for linting & formatting
– Nx as workspace manager
– Pnpm as package manager
– Docker + NGINX for containerized production serving
File structure
• Top-level directories:
– /src – React source code
– /public – static assets (favicon, index.html template)
– /docker – Dockerfile + NGINX config
• Configuration files:
– vite.config.ts, tsconfig.json, tailwind.config.js
– ESLint + Prettier rules
– nx.json, pnpm-lock.yaml
• Scripts in package.json handle dev, build, test, lint, formatting, docker tasks.
README for architecture hints
• No runtime backend – it’s purely front-end, served as static files by NGINX in production
• Dev flow: “pnpm dev” → Vite starts hot-reload server on localhost:5173
• Production flow: “pnpm build” → Vite outputs /dist → Docker image builds /dist into NGINX → serve on port 80
Detail level & granularity
• Every major step: edit, test, build, containerize, serve, run
• Don’t lump “Build & Serve” – separate Vite build from NGINX serve
• Config files (e.g., Dockerfile, NGINX.conf) as part of the build context