This is a React-based web application built with TypeScript and Vite, designed to classify and manage lemon-related data. The project integrates with Firebase for backend services and uses Tailwind CSS for styling.
- React
- TypeScript
- Vite
- Firebase (Authentication, Firestore)
- Tailwind CSS
- React Router
- Lucide Icons
- Clone the repository
- Install dependencies:
npm install
- Create a
.envfile in the root directory with your Firebase configuration:VITE_FIREBASE_API_KEY=your_api_key VITE_FIREBASE_AUTH_DOMAIN=your_auth_domain VITE_FIREBASE_PROJECT_ID=your_project_id VITE_FIREBASE_STORAGE_BUCKET=your_storage_bucket VITE_FIREBASE_MESSAGING_SENDER_ID=your_sender_id VITE_FIREBASE_APP_ID=your_app_id
- Start the development server:
npm run dev
project/
├── src/
│ ├── components/ # Reusable UI components
│ ├── pages/ # Application pages
│ ├── store/ # State management
│ ├── hooks/ # Custom React hooks
│ ├── firebase.ts # Firebase configuration
│ ├── types.ts # TypeScript type definitions
│ ├── App.tsx # Main application component
│ └── main.tsx # Application entry point
├── public/ # Static assets
├── package.json # Project dependencies and scripts
├── vite.config.ts # Vite configuration
└── tailwind.config.js # Tailwind CSS configuration
npm run dev: Start the development servernpm run build: Build the project for productionnpm run lint: Run ESLint for code quality checksnpm run preview: Preview the production build locally
The following environment variables are required for Firebase integration:
VITE_FIREBASE_API_KEYVITE_FIREBASE_AUTH_DOMAINVITE_FIREBASE_PROJECT_IDVITE_FIREBASE_STORAGE_BUCKETVITE_FIREBASE_MESSAGING_SENDER_IDVITE_FIREBASE_APP_ID
To deploy the application:
- Build the project:
npm run build
- Deploy the contents of the
distfolder to your hosting provider of choice. - For Firebase Hosting:
firebase init hosting firebase deploy
This project is licensed under the MIT License - see the LICENSE file for details.