Skip to content

Latest commit

 

History

History
98 lines (82 loc) · 2.84 KB

File metadata and controls

98 lines (82 loc) · 2.84 KB

Package Information

This document lists all packages and their versions used in the React Bootcamp Boilerplate.

Dependencies

Core Dependencies

Package Version Description
react ^19.2.0 UI library
react-dom ^19.2.0 React DOM rendering
react-router-dom ^6.28.0 Client-side routing
@reduxjs/toolkit ^2.11.0 State management
react-redux ^9.1.2 React Redux bindings
react-hook-form ^7.54.2 Form handling
axios ^1.7.9 HTTP client
zod ^3.24.1 Schema validation

Development Dependencies

Package Version Description
vite ^5.4.21 Build tool
@vitejs/plugin-react ^4.3.4 Vite React plugin
typescript ^5.9.3 TypeScript language (TS only)
tailwindcss ^3.4.17 Utility-first CSS
postcss ^8.4.49 CSS transformations
autoprefixer ^10.4.20 PostCSS plugin
vitest ^3.2.4 Testing framework
@testing-library/react ^16.1.0 React testing
@testing-library/jest-dom ^6.6.3 Jest matchers
@testing-library/user-event ^14.5.2 User events
jsdom ^26.0.0 JS DOM for testing
eslint ^9.18.0 Code linting
@eslint/js ^9.18.0 ESLint config
eslint-plugin-react-hooks ^5.1.0 React hooks linting
eslint-plugin-react-refresh ^0.4.16 React refresh linting
prettier ^3.4.2 Code formatting
husky ^9.1.7 Git hooks
lint-staged ^15.3.0 Run linters on staged files
concurrently ^9.1.2 Run multiple commands
json-server ^0.17.4 Mock REST API
globals ^15.14.0 Global variables

Installation

# JavaScript version
cd js-boilerplate
npm install

# TypeScript version
cd ts-boilerplate
npm install

Available Scripts

Script Description
npm run dev Start dev server + JSON Server
npm run dev:vite Start only Vite dev server
npm run dev:server Start only JSON Server
npm run build Build for production
npm run preview Preview production build
npm run lint Run ESLint
npm run format Format code with Prettier
npm run test Run tests
npm run test:ui Run tests with UI
npm run test:coverage Run tests with coverage

Environment Variables

Create a .env file based on .env.example:

VITE_API_BASE_URL=http://localhost:3001
VITE_APP_NAME=React Bootcamp App
VITE_JWT_EXPIRY=3600000

Tech Stack Summary

Category Technology
Framework React 19
Build Tool Vite 5
Language JavaScript / TypeScript
Routing React Router 6
State Redux Toolkit
Styling Tailwind CSS
Forms React Hook Form
Validation Zod
Testing Vitest + RTL
Linting ESLint 9
Formatting Prettier 3
Mock API JSON Server