๐ A React Application with TypeScript, Redux, Tailwind CSS & more..
This project is a modern web application built with React, TypeScript, Redux, and Tailwind CSS. It follows best practices for project organization and includes several features for efficient development.
๐ The project is organized into several directories:
๐ The package.json file includes useful scripts:
dev
: Starts the development server.preprod
: Starts the preprod server.main
: Starts the production server.build-dev
: Builds Project for Development Server.build-preprod
: Builds Project for Preprod Server.build-main
: Builds Project for Production Server.test
: Runs Jest tests.๐งน The project uses ESLint for linting with TypeScript-specific rules. You can expand the configuration as described in the README.md file.
๐จ The project uses Tailwind CSS for styling. The index.css file includes base, components, and utilities styles. The tailwind.config.js file configures Tailwind, including PurgeCSS content files.
๐ Redux with Redux Toolkit simplifies state management. Each feature has its own slice with reducers and actions, combined in store.ts.
๐ React Router handles routing. Routes.tsx defines routes, and ProtectedRoute.tsx protects authenticated routes.
๐ The features/authentication directory contains authentication logic and components. authSlice.ts defines the Redux slice, while Login.tsx includes the login form. authApi.ts defines authentication-related API endpoints.
โ
Jest and Testing Library utilities for React are used for testing. Run tests using the test
script in package.json