diff --git a/.gitignore b/.gitignore index a547bf3..886d2b6 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,12 @@ dist-ssr *.njsproj *.sln *.sw? + +# Environment variables +.env +.env.local +.env.*.local + +# Build artifacts +dist.zip + diff --git a/README.md b/README.md index 18bc70e..6cce832 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,60 @@ -# React + Vite +# Thirukalyanam Web Application -This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. +A modern matrimonial web application built with React, Vite, and Tailwind CSS. -Currently, two official plugins are available: +## Live Application +- [Live Site](https://www.thirukalyanam.amrithaa.net/) -- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh -- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh +## Features +- Multi-step Registration Form (Personal, Educational, Family, Lifestyle, Partner Preferences) +- User Dashboard +- Real-time Chat (WebSocket) +- Profile Filtering and Matching +- Notification System -## React Compiler +## Tech Stack +- **Frontend**: React 19, Vite +- **Styling**: Tailwind CSS v4, Material UI +- **State Management**: Redux Toolkit, Redux Persist +- **Data Fetching**: React Query (TanStack Query) +- **Icons**: Lucide React, Material Icons +- **Notifications**: Firebase Cloud Messaging -The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation). +## Getting Started -## Expanding the ESLint configuration +### Prerequisites +- Node.js (v18 or higher) +- npm or yarn -If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the [TS template](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-react-ts) for information on how to integrate TypeScript and [`typescript-eslint`](https://typescript-eslint.io) in your project. +### Installation +1. Clone the repository: + ```bash + git clone https://gitpro.amrithaa.com/mageshwaran/thirukalyanamweb.git + ``` +2. Install dependencies: + ```bash + npm install + ``` +3. Create a `.env` file and add the API base URL: + ```env + VITE_THIRUKALYANAM_API_BASE_URL=https://www.thirukalyanam.amrithaa.net/backend/api/ + ``` + +### Development +Run the development server: +```bash +npm run dev +``` + +### Production Build +Generate a production-ready build: +```bash +npm run build +``` +Preview the build locally: +```bash +npm run preview +``` + +## License +Proprietary. All rights reserved. diff --git a/src/utills/ErrorBoundary.jsx b/src/utills/ErrorBoundary.jsx index b0c1813..153212c 100644 --- a/src/utills/ErrorBoundary.jsx +++ b/src/utills/ErrorBoundary.jsx @@ -53,7 +53,7 @@ class ErrorBoundary extends Component {
{/* Show error details in development */} - {process.env.NODE_ENV === "development" && this.state.error && ( + {import.meta.env.DEV && this.state.error && (