A modern web application to showcase solar products built with React, TypeScript, and Firebase.
- Responsive design with Tailwind CSS
- Dynamic product listings
- Product categorization
- Product detail pages with specifications
- 3D model viewer for products using Three.js
- Image galleries
- Embedded YouTube videos
- Frontend Framework: React with TypeScript
- State Management: Zustand
- Styling: Tailwind CSS
- Routing: React Router DOM
- Data Source: Firebase Firestore
- 3D Viewer: Three.js with react-three-fiber
- Build Tool: Vite
- Node.js (v16 or newer)
- npm or yarn
- Firebase project with Firestore database
-
Clone the repository:
git clone https://github.com/your-username/jurchen-solar-showcase.git cd jurchen-solar-showcase -
Install dependencies:
npm install # or yarn 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.firebaseapp.com VITE_FIREBASE_PROJECT_ID=your-project-id VITE_FIREBASE_STORAGE_BUCKET=your-storage-bucket.appspot.com VITE_FIREBASE_MESSAGING_SENDER_ID=your-messaging-sender-id VITE_FIREBASE_APP_ID=your-app-id -
Start the development server:
npm run dev # or yarn dev -
Open your browser and navigate to
http://localhost:5173(or the port shown in your terminal)
The application uses the following Firestore collections:
- category: Information about product categories
- subcategory: Information about product subcategories
- hero_slider: Banner images and links for the homepage slider
- products: Complete product information
To build the application for production:
npm run build
# or
yarn buildThe built files will be in the dist directory, which can be deployed to any static hosting service.
This project is licensed under the MIT License - see the LICENSE file for details.
- Three.js and react-three-fiber for 3D rendering
- Firebase for database services
- React ecosystem
- Tailwind CSS for styling